"Cursor over" affecting several objects

0 favourites
  • 5 posts
From the Asset Store
Several elements of the game interface hidden objects
  • Hi

    Im pretty new to Construct 2, so hope someone can help me with this probably fairly easy question about cursor over <img src="smileys/smiley1.gif" border="0" align="middle" />

    I have made a game where if you hold the cursor over an object and press a key it changes to another object. Which is working fine.

    My problem is if the objects are close together (not overlapping) and you have the cursor on the edge of one objects and press the key it will change both objects.

    Is there a way to only change the one where the cursor is most overlapping. Or is there some other way to do this?

  • I'm not sure if this will fix it, but have you tried adjusting the collision polygon?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The cursor can be over two objects at once. If you only want to modify one, you might want to add a 'pick topmost' condition to pick the top object the cursor is over.

  • I did some testing with that, and i think i can get it working by careful adjusting the collision polygons.

    Thanks for that :D

  • The cursor can be over two objects at once. If you only want to modify one, you might want to add a 'pick topmost' condition to pick the top object the cursor is over.

    That was exactly what i needed <img src="smileys/smiley32.gif" border="0" align="middle" />

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