Godot Version
4.3
Question
I wanna to pass through the speed to the parallax Background. What the right sytax to do this?
i want to increase the parallax scrolling with the speed to simulated more speed
The Code in the Player Script
signal current_speed(speed:float)
func _physics_process(delta):
current_speed.emit(velocity.y)
The Code in the Background:
func _ready() -> void:
bird.current_speed.connect(_calculate_scroll(speed))
func _calculate_scroll(bird_speed:float):
print(bird_speed)
i get the error in the background “speed” is not declared in current scope