DuckRun/scenes/Wolke/Spawner/wolken_spawner.gd
megamichi 21e927966d - fixing hindernis speed
- Biom implementation
- Better Graphics
- again icon fix
2024-10-21 21:22:40 +02:00

12 lines
285 B
GDScript

extends Marker2D
var speed
func _ready() -> void:
speed = $"/root/Global".speed
func _spawn() -> void:
var wolke = preload("res://scenes/Wolke/wolke.tscn").instantiate()
wolke.global_position.y = randi_range(0,50)
$WolkenTimer.wait_time = randf_range(0.5,1.5)
add_child(wolke)