Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawntimer = 0
- bullets = {}
- function spawnbullet()
- spawntimer = spawntimer + 1
- if(spawntimer % 30 == 0) then
- local posx = 0
- local posy = 30 - math.random(60)
- local bullet = CreateProjectile('bullet', 0, 0)
- table.insert(bullets, bullet)
- end
- for i=1, #bullets do
- local bullet = bullets[i]
- bullet.Move[0,-60]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement