vertical shooter enemies spawn and velocity increase over time help!!
so im creating a vertical shooter and i want to make the enemies number increase over time and fall down faster each time! i need some help!
Thanks
Thanks
Best Answers
-
Hapiapps Posts: 373
It depends on if you want it gradually over time of in stages. Answer that and I'll go in detail about them. -
UtopianGames Posts: 5,692
-
The_Gamesalad_Guru Posts: 9,922
Yes you an attribute to keep track of the count and you have to update it each 5 second cycle.
Attribute speed = (speed you want to start with)
Timer every 5 seconds
Change attribute game.speed to game.speed +10
In your accelerate behavior link the speed to game.speed
Answers
hapiapps yes i want it gradually over time!
utopian i want something like that but instead of waves i want it gradually speed up over time!
Thanks you both , i'll be waiting for your answers
Thanks you both , i'll be waiting for your answers
My scene display snowballs falling top to bottom in a random way. I want them to fall faster and faster over time so I created an attributes for speed with a default falling velocity, then I added a timer with a change in this speed attribute every 5 seconds.
It works perfectly, except that it seems to work only once.
My scene begins at the default speed, then after 5 second the velocity increases to the Speed+x that I asked, then nothing more, the velocity remains the same.
Do I have to set up a loop or something? I think it loop from the default speed attributes and goes like this
Time(0)=Speed / Time(5)=Speed+10 / Time(10)=Speed+10 / Time(15)=Speed+10
It always increases the initial value of my speed attributes and doesn't take in account the previous changes. How to fix that?
Thank for your help guys