2024-10-01 15:56:30 +02:00
|
|
|
extends Sprite2D
|
|
|
|
|
|
|
|
#var sca: float
|
|
|
|
var speed: float
|
|
|
|
|
|
|
|
# Initialisierung in der _ready Methode
|
|
|
|
func _ready() -> void:
|
|
|
|
speed = 10*randi_range(1, 5)
|
|
|
|
frame = randi_range(0,4)
|
|
|
|
self_modulate = Color(1,1,1,randf_range(0,0.5))
|
|
|
|
|
2024-10-18 16:34:51 +02:00
|
|
|
|
2024-10-01 15:56:30 +02:00
|
|
|
func _process(delta: float) -> void:
|
|
|
|
global_position.x -= speed * delta
|