extends Node ## Nodes func get_body_node(): return $KinematicBody2D func get_sprite_node(): return $KinematicBody2D/AnimatedSprite ## Parameters func set_gpos(new_pos): return get_body_node().set_gpos(new_pos) func get_gpos(): return get_body_node().get_gpos() func set_internal_velocity(new_vel): get_body_node().set_internal_velocity(new_vel) ## Logic func animate(animation): get_sprite_node().play(animation)