How do i get a button to have a highlighted image

johnydeejohnydee Member, PRO Posts: 196
edited November -1 in Working with GS (Mac)
So i have a button and when you press it i want it to change views to show that it was pressed with a differient image and have it go back to its original image after it was pressed.How do i do that?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    For now you could do:

    Rule: When mouse button is down, change image. (to whatever image you want)
    Then add another line in that rule: When mouse button is up, change image. (back to original)

    Hope this works.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Make a rule when actor receives event touch is pressed

    - put a change image behavior in there and change the image to the button press image

    --then open up the otherwise section of that rule and put a change image behavior in there too, but in that one change to the regular button image

    cheers
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Or you might have to do 2 separate rules:

    Rule one: When mouse button is down, change image. (to whatever image you want)

    Rule two: When mouse button is up, change image. (back to original)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    @ Braydon 2 rules aren't necessary

    if you do it as i posted above, the otherwise takes care of the rest. 1 rule :)
  • johnydeejohnydee Member, PRO Posts: 196
    Yeah thanks now is there anyway i can have the second image just overlap the first image in a transparent state?
Sign In or Register to comment.