Animation and camera tweaking
This commit is contained in:
@@ -21,9 +21,9 @@ func _process(delta: float) -> void:
|
||||
if position.x > limit_right_at_center:
|
||||
position.x = limit_right_at_center
|
||||
|
||||
if should_move_right:
|
||||
if should_move_right and position.x < limit_right_at_center:
|
||||
position.x += pan_speed
|
||||
if should_move_left and position.x > 0:
|
||||
if should_move_left and position.x > limit_left_at_center:
|
||||
position.x -= pan_speed
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user