hand cursor on object does not always work

0 favourites
  • 4 posts
From the Asset Store
Experience the true heartbeat of combat with "Combat Hits - Hand To Hand Fighting SFX."
  • I have a page with several buttons for a menu as well as a music button and a reset button.

    For each of these I have the following code:

    Mouse/cursor is over "object name here" /mouse/set cursor to Hand

    System/else/Mouse/set cursor to normal

    "object name here" - here of course I have the name of the element I want the cursor to show the hand on mouse over.

    I also tried to use a family with the same code but it still does not work right:

    The menu buttons get the hand cursor on mouse over

    The Music and Reset buttons do not.

    Why?

  • If you have several events like ...

    Mouse/cursor is over "object name here" /mouse/set cursor to Hand

    System/else/Mouse/set cursor to normal

    .... that indeed can not work.

    Say we have two of those events.

    Mouse is over object 'A' > Hand

    Else > normal

    Mouse is over object 'B' > Hand

    Else > normal

    That first event makes it a 'Hand'. As expected.

    But then it is not over 'B', so the second set it back to 'normal'.

    One (1) family should work fine. Or, arrange them like this.

    Mouse is over object 'A'

    ____ set 'Hand'.

    Else

    Mouse is over object 'B'

    ____ set 'Hand'.

    Else

    Mouse is over object 'B'

    ____ set 'Hand'.

    Else

    ____Set 'Normal'

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for taking the time to answer my question.

    Mouse does not work and I think it is the else that is interfering with the rest. Let me try your idea and I will get back with you either way.

  • The family did not work but fantastic, your system works.

    Man, this has driven me crazy for a while!

    I think the else for each object just messed things up and thinking about it now, it makes sense.

    You made my day!

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