How can you make a text on an image clickable ?

tspad10tspad10 Member Posts: 12
edited June 2012 in Working with GS (Mac)
Hi , I made an menu overlay , and i typed the options of the menu ( play , settings ) etc , How can i make when u press the button play , it goes to the another scene ? ( Make it touchable )

Thanks a lot

Best Answers

  • FluxGamesFluxGames Posts: 33
    Accepted Answer
    First create a rule from the behavior menu. In that rule: When touch is pressed.... And then you drag the Change scene behavior from the behavior menu into that rule.

    //MJ
  • FluxGamesFluxGames Posts: 33
    Accepted Answer
    Then you have to make an actor, drag the actor into the sceen and double click it. Now drag your PS into the actor and last, do as i said above. Hope it helps.

    //MJ
  • simo103simo103 Posts: 1,331
    Accepted Answer
    @tspad10 .. I'm assuming that your image is full screen with Play etc on it. You have two choices. Make a Play button image alone and put your change scene behavour in that OR make an invisible actor in GS and size it over the Play part and put your If touch is pressed change scene behaviour in that.
  • simo103simo103 Posts: 1,331
    Accepted Answer
    @tspad10 ... I should probably have also said that I would recommend the first suggestion (ie: make a background actor ie: full scene photoshop image, and then create your buttons (ie: the Play one) as separate images/actors. Why? Well I believe it is helpful and more professional to provide your customer with clues that an action has occurred so I would use a visual and a sound in a button. In your PLAY button you could have if touch is pressed Interpolate self.size.width to (a number about 20% bigger than normal). Do same for height. Also add a Play sound attribute and find a click sound you like somewhere. Then add a timer After 0.3 seconds change scene.
    Important: put Interpolate self.size width and height attributes in the Otherwise part of that rule and set their values at the true size of your button.

    Result: your button will expand under your touch, make a click sound and then resize to normal once you raise your touch, then the scene will change. (Alternatives are to do a change image instead of size)

Answers

  • tspad10tspad10 Member Posts: 12
    Yeh but when you do that , anywhere u touch on the screen it will move to the next scene , i edited on photoshop an image, and i wanted to do that but on certain place on the screen ( the place where the button '' play '' is there so when you touch it , it goes to next scene )
  • FluxGamesFluxGames Member Posts: 33
    A bit better explained than me ^^

    //MJ
  • tspad10tspad10 Member Posts: 12
    Thanks all
Sign In or Register to comment.