extends Node class_name Move ### # flags and variables here var player: Player var camera: Camera3D # enums are prioritized by order of list static var moves_priority: Dictionary = { "idle": 0, "walk": 1, "slash": 2, "shoot": 3, "dash": 50, "fall": 100, "fallToLanding": 101, "fallToRoll": 102, } static func moves_priority_sort(a: String, b: String): return moves_priority[a] > moves_priority[b] ### func should_enter(input: InputPacket) -> String: if not player.is_on_floor(): input.actions.append("fall") input.actions.sort_custom(moves_priority_sort) return input.actions[0] func update(_input: InputPacket, _delta: float): pass func on_enter_state(): pass func on_exit_state(): pass