mirror of
https://github.com/Steffo99/looping-for-loops.git
synced 2024-11-25 01:24:21 +00:00
9 lines
193 B
GDScript
9 lines
193 B
GDScript
extends ExtendedKinematicBody2D
|
|
class_name ScrollingBlock
|
|
|
|
|
|
export(Vector2) var scroll_velocity: Vector2 = Vector2(-100, 0)
|
|
|
|
|
|
func _physics_process(delta):
|
|
position += scroll_velocity * delta
|