extends State func enter_state(n): var player:Card=get_player() as Card var target_position=player.get_self_index_position() player.move_to(player.position,target_position) func update_state(delta): pass func update_state_phy(delta): pass func exit_state(): pass func time_out(): pass func process_message(type:String,n): match type: "move_finished": change_to_state("idle") "resize": var player:Card=get_player() as Card var target_position=player.get_self_index_position() player.move_to(player.position,target_position) pass pass