Is this easy to do?
I have managed to make an actor spawn when mouse is clicked, pretty easy.
But how do I limit to spawn only 1 actor if clicked? Then after a few seconds you can click to spawn another.
Also is it possible to select different actors to spawn by mouse click?
Hope this makes sense. Thanks
But how do I limit to spawn only 1 actor if clicked? Then after a few seconds you can click to spawn another.
Also is it possible to select different actors to spawn by mouse click?
Hope this makes sense. Thanks
This discussion has been closed.
Comments
when mouse click
and allowSpawn = 0
spawn actor
set allowSpawn = 1
after timer
set allowSpawn = 0
Then create rule when mouse click change attribute game.AllowSpawn to game.AllowSpawn0 ?
Do I put this on the invisible actor on the stage that I am using to spawn?
Sorry i'm bit confused. I started with the how to make a simple drawing game how to in the wiki...
I've set the rule like this:
mousebutton is down
game.allowspawn = 0
spawn actor
change attribute: game.allowspawn to game.allowspawn=1
timer: after 5 seconds
change attribute: game.allowspawn to game.allowspawn=0
timer: after 5 seconds
change attribute: game.allowspawn to game.allowspawn-0
Ace