How can I force a random image on an actor by clicking another actor?

xyloFUNxyloFUN Member Posts: 1,593
edited November -1 in Working with GS (Mac)
Hi, I've just google searched and read a few old (and not so old) forum posts because I would like to:

Click on a button (actor) and
force another actor to display one of 50 random images.

I found a post which is 8 months old and probably works but if there is a simple way to do this, I'd love to learn how to!

THanks :)

Comments

  • MogosMogos Member Posts: 63
    Create a scene attribute like "Select Image Clicked"

    Then on the clicked actor, you change the variable to something like "1"

    On the other, create a rule that checks if the attribute is "1" and then change the image and reset the attribute.

    That should do it.
  • xyloFUNxyloFUN Member Posts: 1,593
    Thanks Mogos :)

    I have to admit that I am not able to follow your instructions ....

    How would I control a lot of different images (hide/unhide them in random order) with one "Next" button?

    thanks for pointing me in the right direction! :)
  • xyloFUNxyloFUN Member Posts: 1,593
    Sorry to push this again but I am really stuck with this last step!

    IS there a "smart" way to show and hide images in random order?

    Also, my "demo" once on the ipad does not turn off ... is that normal? - thanks :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    If you want to hide it, change the attribute self color alpha to zero, then when you want it to show change it back to 1. U just need to incorporate that in whatevers gonna trigger the hide and show
Sign In or Register to comment.