extends KinematicBody2D class_name Actor var state = 0 var health = 100 var speed = 200 # How fast the actor will move (pixels/sec). var state_map = {} # {STATE, Action Node}