mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
infinite scroll
This commit is contained in:
10
Nodes/move_down.gd
Normal file
10
Nodes/move_down.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Node3D
|
||||
var t = 0
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
t += delta * 45
|
||||
position.z = t
|
||||
|
||||
if(position.z > 250):
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user