Control port 1.3

This commit is contained in:
Jan Groß committed 2017-11-18 13:38:34 +01:00
1 parent 92e7d67c08
commit 71931635a7
3 files changed
+10 -3

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ class StateAiming:
cannon.set_rot(deg2rad(base.cannon_rotation))
func input(event):
if event.is_action_pressed("slow_motion"):
if event.is_action_pressed("slow_motion") or event.is_action_pressed("X"):
OS.set_time_scale(0.15)
if event.is_action_released("fire") or event.is_action_released("A") and reload_timer <= 0:
print("We fire")