From a9d246ea6caa25d94e729f2aff8b64366b68b79c Mon Sep 17 00:00:00 2001 From: jmintb Date: Mon, 30 May 2016 22:34:59 +0200 Subject: Switched the space shooter demo from none fixed process to fixed process --- demos/2d/space_shooter/rail.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'demos/2d/space_shooter/rail.gd') 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) -- cgit v1.2.3