summaryrefslogtreecommitdiff
path: root/demos/2d/space_shooter/ship.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/2d/space_shooter/ship.gd')
-rw-r--r--demos/2d/space_shooter/ship.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/2d/space_shooter/ship.gd b/demos/2d/space_shooter/ship.gd
index 0bc9ca6b13..d3a4cd335d 100644
--- a/demos/2d/space_shooter/ship.gd
+++ b/demos/2d/space_shooter/ship.gd
@@ -9,7 +9,7 @@ var prev_shooting = false
var killed = false
-func _process(delta):
+func _fixed_process(delta):
var motion = Vector2()
if Input.is_action_pressed("move_up"):
motion += Vector2(0, -1)
@@ -53,7 +53,7 @@ func _process(delta):
func _ready():
screen_size = get_viewport().get_rect().size
- set_process(true)
+ set_fixed_process(true)
func _hit_something():