diff options
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) |