Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Arena.Resize(200, 198)
- Encounter.SetVar("wavetimer", 8.5)
- timer = 0
- tornado = false
- rains = {}
- tornadospawn = math.random(0,1)
- tornadoactive = false
- CreateProjectileLayer("black", relatedTag = "", before = false)
- function Update()
- timer = timer + 1
- if timer % 10 == 0 then
- rain = CreateProjectile("rain", math.random(-(Arena.width/2)+7, (Arena.width/2)-7), Arena.height/2)
- table.insert(rains, rain)
- end
- for i=1,#rains do
- rain = rains[i]
- if rain.isactive == true then
- rain.MoveTo(rain.x, rain.y-2)
- end
- if rain.y <= -Arena.height/2 then
- rain.Remove()
- end
- end
- if timer % 150 == 0 then
- if tornadospawn == 0 then --0 starts from left
- tornadotop = CreateProjectile("tornadowidetop1", -(Arena.width/2)-40, (Arena.height/2)-33
- tornadomid = CreateProjectile("tornadowidemid1", -(Arena.width/2)-40, (Arena.height/2)-99
- tornadobottom = CreateProjectile("tornadowidebottom1", -(Arena.width/2)-40, -(Arena.height/2)+33
- tornadoactive = true
- black = CreateProjectile("black", -(Arena.width/2)-40, 0, "black")
- else
- tornadotop = CreateProjectile("tornadowidetop1", (Arena.width/2)+40, (Arena.height/2)-33
- tornadomid = CreateProjectile("tornadowidemid1", (Arena.width/2)+40, 0
- tornadobottom = CreateProjectile("tornadowidebottom1", (Arena.width/2)+40, -(Arena.height/2)+33
- tornadoactive = true
- black = CreateProjectile("black", (Arena.width/2)+40, 0, "black")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment