Advertisement
Guest User

Untitled

a guest
Aug 10th, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | Gaming | 0 0
  1. Video of problem: https://www.youtube.com/watch?v=M-z4La-VMFE
  2.  
  3. arenasize = {200, 50}
  4. lightning1 = CreateProjectile("lightning",0,-40)
  5. Player.MoveTo(-80,-40,false)
  6. spawntimer = 0
  7. Player.sprite.color = {0/250, 255/181, 100/100}
  8. Player.sprite.rotation = 0
  9. Player.SetControlOverride(true)
  10.  
  11. function Update()
  12. lightning1.move(-1, 0)
  13. spawntimer = spawntimer + 1
  14. if Input.Right > 0 then
  15. Player.MoveToAbs(Player.absx + 0.5,Player.absy,false)
  16. end
  17. if Input.Left > 0 then
  18. Player.MoveToAbs(Player.absx - 0.5,Player.absy,false)
  19. end
  20. if Input.Up> 0 then
  21. Player.MoveToAbs(Player.absx,Player.absy + 0.5,false)
  22. end
  23. if Input.Down> 0 then
  24. Player.MoveToAbs(Player.absx,Player.absy - 0.5,false)
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement