Guest User

Untitled

a guest
Sep 16th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. extends Line2D
  2.  
  3. var old_point = Vector2()
  4.  
  5. func _process(delta):
  6. # Set some initial points
  7. var initial_points = []
  8. for y in range(150):
  9. initial_points.append(Vector2(0, y))
  10. points = initial_points
  11. # Create a new set of modified points
  12. var new_points = []
  13. for point in points:
  14. old_point = point
  15. new_points.append(Vector2(old_point.x, old_point.y + 10))
  16.  
  17. # The new points
  18. points = new_points
  19.  
Advertisement
Add Comment
Please, Sign In to add comment