Press this a picture changes

Bilzo12Bilzo12 Member Posts: 70
edited May 2012 in Working with GS (Mac)
Hey everyone I know I've been asking a lot of questions but my helpful app is almost complete but what I need is the ability to press a actor and have a picture on the same scene change but the problem is I have no idea on how to do this if any one could help that would be awesome.

Thanks for reading

Best Answer

  • patapplepatapple Posts: 873
    Accepted Answer
    if i have right understand you can:
    1) create a boolean attribute
    2) in the actor -> when touch is pressed - change attribute "your attribute" to TRUE
    3) in the image actor -> new rule - when attribute "your attribute" is TRUE --> change image to "your image"

    cheers

Answers

  • Bilzo12Bilzo12 Member Posts: 70
    Thanks I'll try it tomorrow
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you want to change an image on a different actor, you'll need to use a game attribute to achieve this. For example, When Touch is Pressed change attribute game.ChangeImage (boolean) to true. Then on the actor that should change its image, When attribute game.ChangeImage is true, Change Image [to new image].
  • MotherHooseMotherHoose Member Posts: 2,456
    edited May 2012
    if your button only functions to change the imageHolder's image
    … might be more efficient to unlock the button in scene

    on button:
    Rule: when
    Event: touch is pressed
    changeAttribute: scene.Background.imageHolder.image

    demo: http://www.mediafire.com/?o8blf9x9c9sfjh9
    buttonUnlocked behavior and multipleChanges with buttonLocked and tables

    image MH
  • Bilzo12Bilzo12 Member Posts: 70
    Thank you everyone I will be able to finish my helpful app soon
Sign In or Register to comment.