Edit: This problem is resolved no need to help :+1:
Is there a reason this would cause Godot's application to stop responding? >
func _process(delta):
#print(backgroundOrigin.y)
while $ParallaxLayer/Sprite.get("position").y <= $ParallaxLayer/Sprite2.get("position").y:
pass
Here's full script:
tool
extends ParallaxBackground
var backgroundOrigin = Vector2(0,0)
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
backgroundOrigin = $ParallaxLayer/Sprite.get("position")
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
#print(backgroundOrigin.y)
while $ParallaxLayer/Sprite.get("position").y <= $ParallaxLayer/Sprite2.get("position").y:
pass
Any help at all is much appreciated, thanks