Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawntimer = 0
- bones = {}
- blue = require "Libraries/bluesoul"
- blue.Initialize()
- local spawnx = 75
- local spawny1 = 30
- local spawny2 = -30
- function Update()
- blue.Update()
- spawntimer = spawntimer + 1
- if spawntimer%60 == 0 then
- local sbone1 = CreateProjectile('blank', spawnx, spawny1)
- local sbone2 = CreateProjectile('blank', spawnx, spawny2)
- table.insert(bones,sbone1)
- table.insert(bones,sbone2)
- end
- for i=1, #bones do
- local sbone1 = bones[i]
- local sbone2 = bones[i]
- bones[i].sprite.SetAnimation({"spinb1", "spinb2"}, 0.10)
- if bones[i].isactive then
- bones[i].Move(-2,0)
- if bones[i].x <= -77 then
- bones[i].Remove()
- end
- end
- end
- end
- function OnHit()
- Player.hurt(1,0.4)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement