Need Random Image to Stop when Clicked
I am using a timer and random function to display a random image every few seconds for 1 actor. I want to put in a rule when actor is touched it remains on the current image showing. How can I do this??
Thanks for the help.
Comments
You can have an integer or boolean attribute inside the actor which, when true, activates the random image behaviour. Then you can setup a rule inside your actor so that when you press it it changes that boolean to false, that way it should keep changing images until you press it
When touch is pressed > nothing
Otherwise > every few seconds > change image to random.
Like this:
https://www.mediafire.com/?834cjk2qt4sqtrb
I created a Boolean attribute and it worked...sort of. I have several actors with random images and I only wanted the one being touched to stop on that image. With the Boolean attribute, when one is touched, they all stop.
How can I work it out so only the actor being touched stops being a random image and stops on the current image???
Thanks for the help.
The boolean attribute needs to be a self (actor) attribute rather than a game attribute, which has the same value for every actor.