-
Time based creation
Hi In my game I want that a enemy will spawn time based + enemyes destroyed.
So its something like this:
"Restrict actions by Global Value A" = Create Enemy
"Start of frame: Set alterable value to 10.000"
That works, the problem is that I want that time value to drecrease as the level goes on, so
"Laser colides with Enemy"= "Subtract 100 from alterable Value A"
That won't work, the time for creation based on A will always be 10.000 miliseconds, even if I set alterable Value A to zero it will be stuck in the initial value.
Any help? =]
-
Re: Time based creation
Your post is a little confusing... What is Global Value A for? What exactly is it you're trying to do?
Also, I'm aware in some countries, people use a decimal like the US uses a comma... is that the case here? Is the 10.000 milliseconds supposed to be ten thousand? I would assume so, as I don't see the need to add 3 zeros after the decimal for no reason. =p
-
Re: Time based creation
ok ok, global value A is the reespaw time, it is reduced everytime a enemy is killed, so they will spawn faster.
-
Re: Time based creation
+Every X seconds (use a calculation to make X = the global value)
-Create enemy
+Enemy destroyed
-Subtract Y from Global Value A