godot 里面的 is_action_released 函数有啥作用 ?是什么意思?资源990为您解答
函数解释
如果给定的动作被释放,即未被按下,则返回 true。与 InputEventMouseMotion 或 InputEventScreenDrag 类型的事件无关。
如果 exact_match 是 false,它将忽略 InputEventKey 和 InputEventMouseButton 事件的额外入修饰符,以及 InputEventJoypadMotion 事件的方向。
代码示例
if event.is_action_released("jump")
表示判断jump 按键是否松开 ,松开的话再运行下面 代码