Hi guys can somebody spot the mistake i have an my script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avalkova

extends AnimatableBody2D

var scroll_speed = 8
var move_vector = Vector2(-scroll_speed, 0)
var screen_width = 450
var pipe_width = 96
var rnd = RandomNumberGenerator.new()

func _ready():

func _process(delta):
if(global_position.x < -(screen_width+pipe_width)/2):
global_position.x += (screen_width+pipe_width)

func set_pipe_height():
var minimum_pipe_height = -120
var maximum_pipe_height = 50
global_position.y = rnd.randi_range(minimum_pipe_height, maximum_pipe_height)

You don’t say what your script doing, what or why isn’t working and learn how paste code here because you lost all white symbols .

Moreus | 2023-03-09 17:15