Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Arena.Resize(75, 75)
- Player.MoveTo(0,-27, false)
- Player.sprite.color = {15/255, 214/255, 28/255}
- Arena.Move(0, 50)
- spawntimer = 0
- Player.SetControlOverride(true)
- shield = CreateProjectile("shield", 0, 0)
- ring = CreateProjectile("green_ring", 0, 0)
- shield.SetVar("safe", true)
- ring.SetVar("safe", true)
- Up = CreateProjectile("spear", 0, -400)
- function Update()
- spawntimer = spawntimer + 1
- shield.MoveTo(Player.x, Player.y)
- ring.MoveTo(Player.x, Player.y)
- if Input.Right > 0 then
- shield.sprite.rotation = 270
- end
- if Input.Left > 0 then
- shield.sprite.rotation = 90
- end
- if Input.Up> 0 then
- shield.sprite.rotation = 0
- end
- if Input.Down> 0 then
- shield.sprite.rotation = 180
- end
- Up.Move(0, 10)
- if Up.y == shield.y - 50 then
- Up.MoveTo(99999, 99999)
- end
- end
- function OnHit(bullet)
- if bullet.GetVar("safe") then
- Player.Hurt(0, 0)
- end
- if not bullet.GetVar("safe") and not bullet.GetVar('color') then
- Player.Hurt(1, 0)
- end
- if bullet.GetVar('blue') and Player.isMoving then
- Player.Hurt(1, 0)
- end
- if bullet.GetVar('blue') and not Player.isMoving then
- Player.Hurt(0, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement