Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Video of problem: https://www.youtube.com/watch?v=M-z4La-VMFE
- arenasize = {200, 50}
- lightning1 = CreateProjectile("lightning",0,-40)
- Player.MoveTo(-80,-40,false)
- spawntimer = 0
- Player.sprite.color = {0/250, 255/181, 100/100}
- Player.sprite.rotation = 0
- Player.SetControlOverride(true)
- function Update()
- lightning1.move(-1, 0)
- spawntimer = spawntimer + 1
- if Input.Right > 0 then
- Player.MoveToAbs(Player.absx + 0.5,Player.absy,false)
- end
- if Input.Left > 0 then
- Player.MoveToAbs(Player.absx - 0.5,Player.absy,false)
- end
- if Input.Up> 0 then
- Player.MoveToAbs(Player.absx,Player.absy + 0.5,false)
- end
- if Input.Down> 0 then
- Player.MoveToAbs(Player.absx,Player.absy - 0.5,false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement