i would like to have a sprite (lets call it 'monster') spawn every 30 seconds but not letting the same sprite spawn again until it is destroyed. Now monster has a Boolean which is set to true.
In the event sheet i create the monster every 30 seconds and check if the Boolean is true. once it spawns i set the variable to false but the only problem is another monster is still created.
What am i doing wrong?
I think I worked out an example that might be what you need but I currently don't have a place to upload (my DropBox is packed) it so I can either mail it to you or try and manually type in the events.
I have only started messing around with Construct since yesterday but it might help a bit.
Let me know.
both options are great for me, so choose which option is easiest for you.
Sure, I can send you the file... email me at lance at digitalarchitecture.ca
I'll fire you the file then...
Develop games in your browser. Powerful, performant & highly capable.
Should have sent you an email
Renegade, the logic behind it is, make a conditional checking a variable, if the variable is not active, then, check the timer, after 30 sec, spawn, if the variable is active, it'll not happen.
Thanks PixelAmp that's exactly what i needed, i thought that by creating a variable inside the ghost object would be enough; didn't know i needed a global variable for this.
Thanks for your help
+>Every 30 seconds
->System compare sprite.count < 1
-->system create object
Sprite.count is the number of sprites that exist.
Glad it helped. It was a good exercise for me to familiarize myself with the tool. <img src="smileys/smiley1.gif" border="0" align="middle" />