how to give a hover effect to buttons for ios? (solved)

famekraftsfamekrafts Member, BASIC Posts: 834
edited September 2012 in Working with GS (Mac)
When the mouse goes on top it should make the button bigger and vice versa.

But I am not able to do so with mouse inside/outside? How do I make it?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Off the top of my head is make a small invisible actor locked to the mouse x y position and then use overlap and collide rules.
  • carlblanchetcarlblanchet Member Posts: 755
    How come are you unable to use the mouse position inside feature? If the mouse is positioned over the actor, that actor should be able to detect the mouse inside, and from there you tell the actor to interpolate bigger, smaller, etc.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    @carlblanchet Not working on the mac version. I will try again and let you know.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    Ok maybe I was using the wrong behavior.

    I was trying self.size under attributes which never worked.

    Now I tried using change size with a growth rate of 1, setup with a timer of 0.2 secs. and its working and other wise with a growth rate of -1.

    I wasted one whole day with this lol, but its the learning curve, once done I will remember for ever.

    But will the mouse event work with ipad?

  • famekraftsfamekrafts Member, BASIC Posts: 834
    spoken soon. That otherwise behavior will keep making it smaller and smaller. So there I added constrain attribute to the normal size and its working now
  • carlblanchetcarlblanchet Member Posts: 755
    @wickedsunny Glad to hear that you got it working! Yes, the mouse events act as touch events on devices.
  • famekraftsfamekrafts Member, BASIC Posts: 834
    edited September 2012
    Crap, I can use constrain attribute to both and it works fine :) Thanks
Sign In or Register to comment.