Where is Mouse Out? in "Events"

0 favourites
  • 8 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • Hello guys,

    I want to create a button when the position on the mouse is over the button it button change with other button color, but I cant find the action mouseOut or similar action. I have it.

    (In my Layout the sprite JUGAR2 is invisible)

    Mouse / Cursor is Over JUGAR / JUGAR2 Set Visible

                                   Mouse Set Cursor to Hand

    But when I out the mouse over the button JUGAR2 it not return with the image JUGAR.

    Please let me know what is my problem.

    Thanks and sorry for my bad english

    Gustavo

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Please publish the CAPX or at least the code you use

  • There's no mouse out event right now. Do it like this:

    Mouse is Over JUGAR - > Jugar2 Set Visible (Assuming Jugar2 is on top)

    Trigger Once

    Mouse is Over Jugar (inverted) -> Jugar2 Set Invisible

    Trigger Once

    Or

    Mouse is Over JUGAR - > Jugar2 Set Visible

    Trigger Once                 Jugar Set Invisible

    Mouse is Over Jugar (inverted) -> Jugar2 Set Invisible

    Trigger Once                           Jugar Set Visible

    Also you don't have to create 2 sprites for a button just create one sprite and set frame1 to normal button state and frame2 to over button state and change frame on events accordingly. And remember Trigger Once is your friend. You'll be using it alot

  • right click on any condition and click 'invert'.

  • thanks Kiyoshi but Please help me, This is my capx!.http://dl.dropbox.com/u/34409812/test.capx

  • This should do your trick

    <img src="http://quak.laurig.de/toggle.JPG" border="0" />

    Use Right-Click to select "Invert"

  • Oh!! great Weishaup!! thats funny! now is working!! yeah!!

    Thanks so much!

  • Hey I tried this but apparently it only works on 1 Sprite, why is that?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)