summaryrefslogtreecommitdiff
path: root/demos/2d/space_shooter/ship.gd
diff options
context:
space:
mode:
authormarcelofg55 <marcelofg55@gmail.com>2016-06-02 18:56:28 -0300
committermarcelofg55 <marcelofg55@gmail.com>2016-06-02 18:56:28 -0300
commit4e0f2389c3a79f1e558ee13e6d51e7dbe531368e (patch)
treea8bd2b831ae005a614d2a5c8a56ea4bccec3d59e /demos/2d/space_shooter/ship.gd
parentbb223869e0d016d372d8f3d98b3d5680cc069368 (diff)
parentbc25492e636a82a30d77aa1b37edede0a2a9182f (diff)
Merge remote-tracking branch 'upstream/master'
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():