1 Button to Change 2 images simultaneously?

WarlockWarlock Member Posts: 66
edited November -1 in Working with GS (Mac)
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

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hey there,

    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.
  • WarlockWarlock Member Posts: 66
    Hi Braydon,

    Thanks, I'll give it a try! Much appreciated.

    Warlock
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Any Time m8.
Sign In or Register to comment.