Mouse cursor on object picking the instance ?

0 favourites
  • 5 posts
From the Asset Store
Mouse cursor is something that the player controls and sees all the time, that's why it is so important to make it cool!
  • Does the event 'mouse cursor on object' actually pick the instance ? because i have some kind of nasty bug that happen when i am over an object and then switching to another instance of the object pretty near.. it make it look like its still on the first object..

    Here the strange behavior..

    <img src="http://s12.postimg.org/zajodc0jx/nastybug.png" border="0" />

    Here my events..

    <img src="http://s18.postimg.org/dlmrdhnvd/bug.png" border="0" />

    Any ideas ? Normally the event Cursor is over 'Button' should pick the correct instance.

    Thanks!

  • Is it possible that mouse cursor's top left pixel is used for is over action, and thus at the moment it's not actually over any of the buttons. And your conditions check for state of change only when mouse is over one of any of the buttons?

  • I use the default mouse button for this. I check if its over id not i set the active/over state off which is what the events are showing. Mouse is definiticly over one of the instance but the second button should not show the over state when i am not on it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Event 5 will only run if the mouse isn't over ANY button. If you move quickly from one button to another then the mouse is still over a button so event 5 doesn't run. Maybe if you had 'for each button' in there...

  • ramones this fixed it! it make sense actually i wanted to take each button one by one to apply this logic so.

    Thanks a lots!

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