system
1
system
4
|
|
|
|
Reply From: |
eye776 |
Call set_process_input(true)
inside your _ready
function
You can then do this in your_input
function, after calling :
func _input(event):
# ...
if event.type == InputEvent.KEY:
# ...
if event.scancode == KEY_W && event.pressed == false:
# The 'W' key was released
system
5
|
|
|
|
Reply From: |
rgrams |
Use actions instead of hard coding keys. Then just do:
func _input(event):
if event.is_action_released("my_action"):
do_other_stuff()
and for key pressed use if event.is_action_pressed()