Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Line2D
- var old_point = Vector2()
- func _process(delta):
- # Set some initial points
- var initial_points = []
- for y in range(150):
- initial_points.append(Vector2(0, y))
- points = initial_points
- # Create a new set of modified points
- var new_points = []
- for point in points:
- old_point = point
- new_points.append(Vector2(old_point.x, old_point.y + 10))
- # The new points
- points = new_points
Advertisement
Add Comment
Please, Sign In to add comment