diff options
author | marcelofg55 <marcelofg55@gmail.com> | 2016-06-02 18:56:28 -0300 |
---|---|---|
committer | marcelofg55 <marcelofg55@gmail.com> | 2016-06-02 18:56:28 -0300 |
commit | 4e0f2389c3a79f1e558ee13e6d51e7dbe531368e (patch) | |
tree | a8bd2b831ae005a614d2a5c8a56ea4bccec3d59e /demos/2d/space_shooter/rail.gd | |
parent | bb223869e0d016d372d8f3d98b3d5680cc069368 (diff) | |
parent | bc25492e636a82a30d77aa1b37edede0a2a9182f (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'demos/2d/space_shooter/rail.gd')
-rw-r--r-- | demos/2d/space_shooter/rail.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/2d/space_shooter/rail.gd b/demos/2d/space_shooter/rail.gd index 7362dff97d..a9559806cb 100644 --- a/demos/2d/space_shooter/rail.gd +++ b/demos/2d/space_shooter/rail.gd @@ -7,13 +7,13 @@ var offset = 0 func stop(): - set_process(false) + set_fixed_process(false) -func _process(delta): +func _fixed_process(delta): offset += delta*SPEED set_pos(Vector2(offset, 0)) func _ready(): - set_process(true) + set_fixed_process(true) |