Files
2026-01-15 15:27:48 +01:00

11 lines
253 B
GDScript

@tool
class_name BasicEnemy
extends Entity
func on_ready():
# Sync the entity's scene position to the Transform component
if has_component(C_Transform):
var c_trs = get_component(C_Transform) as C_Transform
self.global_position = c_trs.position