How to implement unlimited gameplay
I want to set up a rule like this:
When Level = 1, spawn enemy.actor once
When Level = 2, spawn enemy.actor twice
and so on.
But I want this to happen forever, without having to create a rule that says
When Level = 10
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Because its a pain in the butt to have to do it like that. Does anyone know a simpler way to create this kind of situation. I was hoping to use a when game.level = 1
Chg Attribute - Global.Enemy to 10 (and somehow this would spawn the actor 10 times).
When Level = 1, spawn enemy.actor once
When Level = 2, spawn enemy.actor twice
and so on.
But I want this to happen forever, without having to create a rule that says
When Level = 10
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Spawn enemy.actor
Because its a pain in the butt to have to do it like that. Does anyone know a simpler way to create this kind of situation. I was hoping to use a when game.level = 1
Chg Attribute - Global.Enemy to 10 (and somehow this would spawn the actor 10 times).
Comments
Sorry If It Bothers You,
Matt
Also, you could try two timers (one within the other);
For "game.level" seconds; Every 1 second spawn enemy.actor
So if you're on level 20 it would read;
For "20" seconds; every 1 second spawn enemy.actor
This would spawn 20 actors on level 20. You could use a separate game.attribute for the number of enemies spawned, but I'd stick with whatever level the player is on to do that...
Good luck!
But that takes up RAM.
EDIT: I got it wait one sec
Create an attribute called "level" Every time you beat a level change attribute level to level+1
Create an attribute called "counter" Everytime your actor is on the scene change counter to counter+1
Then make a rule
--When counter DOES NOT equal level--
*Every 0 Seconds Spawn Your Actor
Try this, tell me how it goes
Matt
___________________________________________________________________________________
TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
Matt
Thanks man!
I am pretty confident that my way should work. If you'd like you can send your project over & I'll mess with it. My email is matthewredler@gmail.com
Matt
Full Game Creation Service
1 On 1 Project Help
Matt
Full Game Creation Service
1 On 1 Project Help
Thanks so much mate!
Matt