1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Done the thing to eliminate conflicts with frame movement NYAAA. i am extremely tired and will probably go sleep soon ^.^ nyaaa <3

This commit is contained in:
sapient_cogbag 2020-04-13 13:52:25 +01:00
parent 11a7261ef1
commit 076bf2c7be
No known key found for this signature in database
GPG key ID: 9DA0A435732D7C4A

View file

@ -22,8 +22,12 @@ func dir_move_zoom_multiplier(press_time : float) -> float:
return Global.high_speed_move_rate
elif Input.is_key_pressed(KEY_SHIFT):
return Global.medium_speed_move_rate
else:
elif !Input.is_key_pressed(KEY_CONTROL):
# control + right/left is used to move frames so
# we do this check to ensure that there is no conflict
return Global.low_speed_move_rate
else:
return 0.0
func reset_dir_move_time(direction) -> void:
Global.key_move_press_time[direction] = 0.0