When everything is gone, then spawn next level button
Hey guys,
In a game i'm working on, I want it so that when everything that can be destroyed is destroyed, then the next level spawn button appears.
There are only certain things that can be destroyed, though. So i want it when all those are gone, then you may move on to the next level.
Any idea on how to do this?
Thanks!
In a game i'm working on, I want it so that when everything that can be destroyed is destroyed, then the next level spawn button appears.
There are only certain things that can be destroyed, though. So i want it when all those are gone, then you may move on to the next level.
Any idea on how to do this?
Thanks!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Comments
when destroyed=0 change attribute spawnbutton to true then when the person presses any button change the spawn button to false
then in the spawn button actor when spawnbutton=1 spawn actor button then in the next scene make the destroyed attribute value to whatever the amount of things need to be destroyed in that specific scene
EDIT: Tshirt beat me
Cheers, Weswog
That works! Thanks!
But i've seen your Zombie Drop game, you tried to get the zombie on the platform then when everything is gone, you can go ahead with the next level.
How did you do that.
Just wondering for future references
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
tshirtbooth probably did it a cooler and faster way.
If hero overlaps or collides when destroyed=0
Timer after 3 sec. or whatever time change attribute finished level to 2
Cheers, Weswog
But now when i go to the next level, it doesnt work cause it is set to 2. (just a example)
But level 2 has 3. So how do i do that?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Just to recap, i got it working.
But now when i go to the next level, it (the integer) doesnt work cause it is set to 2. (just a example)
But level 2 has 3 things that can be destroyed. So how do i do that?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
When i go to the next level, i update the attribute, it will work, but then lvl 1 wont work
And i tried a separate attribute, but where would i put the change attribute that Tshirtbooth showed how to do? I already have one in the actor for lvl 1.
Thanks
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx