add reset button
This commit is contained in:
parent
62056c5d2c
commit
6e75796cd3
|
@ -60,6 +60,9 @@ func _process(delta):
|
|||
if Engine.editor_hint:
|
||||
return
|
||||
|
||||
if Input.is_action_pressed("reset"):
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
if (last_move_time + rest) * 1000 < OS.get_ticks_msec():
|
||||
for movement in movements:
|
||||
if Input.is_action_pressed(movement.action):
|
||||
|
|
|
@ -62,6 +62,12 @@ whoosh={
|
|||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":1,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
reset={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":82,"unicode":0,"echo":false,"script":null)
|
||||
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[physics]
|
||||
|
||||
|
|
Loading…
Reference in New Issue