gaming
This commit is contained in:
parent
57eeede288
commit
57f147236a
13 changed files with 227 additions and 24 deletions
18
autoscroll.gd
Normal file
18
autoscroll.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
extends Camera2D
|
||||
|
||||
@export var camera_speed : float = 10
|
||||
var active : bool = false
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if active:
|
||||
position.x += delta * camera_speed
|
||||
|
||||
|
||||
func _on_lander_moved() -> void:
|
||||
active = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue