Advertisement
Guest User

Lines

a guest
Oct 17th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //Create
  2.  
  3. ymin = room_height*3/5 //adjust as needed
  4. ymax = room_height
  5. spd = 7 // adjust to effect
  6. ydiv = ymax-ymin
  7. nlines = 6
  8.  
  9. var I;
  10. for (I=1, I<=nlines, I++)
  11. {
  12. ydv[I] = (I / nlines) * ydiv
  13. }
  14.  
  15. //draw
  16. draw_set_color(c_lime) //c_green?
  17. var I;
  18. for (I=1, I<=nlines, I++)
  19. {
  20. ydv[I] = (ydv[I]+spd) mod ydiv
  21. draw_set_alpha(ydv[I]/ydiv)
  22. draw_line(0, ymin+ydv[I], room_width, ymin+ydv[I])
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement