1 Button to Change 2 images simultaneously?
Hi guys,
I was wondering if someone could tell me if and how I could have a button that, once tapped, changes 2 images at the same time. For example, I click a button, and 2 images of stars change into 2 images of planets. I can make 1 button change 1 image at a time so far, but 2 would be very helpful.
Also, both images are in different parts of the screen.
Thanks for any tips or examples.
Warlock
I was wondering if someone could tell me if and how I could have a button that, once tapped, changes 2 images at the same time. For example, I click a button, and 2 images of stars change into 2 images of planets. I can make 1 button change 1 image at a time so far, but 2 would be very helpful.
Also, both images are in different parts of the screen.
Thanks for any tips or examples.
Warlock
Comments
Have a attribute called touch2image (boolean) and set it to false
Now inside the button that when pressed changes the image put this:
Rules, when touch is pressed,
Change attribute game.touch2image to true
Then in the actors that you want the image to change put this:
Rule: When attribute game.touch2image is true,
Change image to whatever you want.
That should work.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Thanks, I'll give it a try! Much appreciated.
Warlock
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx