Coding_guy_

please help

Mar 2nd, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. Bullet = {"bullet"}
  3. divide = 1
  4. childNumber = -1
  5. layer = "BelowPlayer"
  6. position = "BelowPlayer"
  7. below = false
  8. CreateLayer(Warning,position,below)
  9. playSound = true
  10. ignoreDef = false
  11. timer = 0
  12. moving = 0
  13. moveplayer = true
  14. Arena.Resize(100,100)
  15.  
  16.  
  17. function Update()
  18. moving = moving + .10
  19. Arena.Resize(100-moving,100-moving)
  20. timer = timer + 1
  21. if timer == 1 then
  22. timer = 0
  23. CreateProjectile("bullet",50,-50+math.random(100))
  24. Bullet.Move(-100, Bullet.y)
  25. Player.sprite.color = {213/255, 53/255, 217/255}
  26. end
  27. end
  28. function OnHit(bullet)
  29. Player.Hurt(10)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment