inverted mouse over not picking all objects bug ?

Get help using Construct 2

Post » Sun Oct 19, 2014 9:09 pm

I've been at this one for a while. Any ideas how to fix this?

Basically what looks like happens:

If the mouse is going fast enough that it is not seen as off of one of the family objects during a tick, it behaves as if the mouse is somehow on top of all the objects. It reports the correct UIDs and behaves, in code, as if only one was selected.

Best to show with an image:

Image

Here is my code...

3Ls1pJH.png
You do not have the required permissions to view the files attached to this post.
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
13
S
4
Posts: 303
Reputation: 1,705

Post » Sun Oct 19, 2014 9:35 pm

One work around if only one thing can be highlighted at a time would be to have an event turning them ALL off every 0.1 seconds (you could do every tick, but 60x a second is over kill) unless the mouse cursor is over them. This should keep the lagging ones reset.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
65
S
17
G
8
Posts: 635
Reputation: 9,331

Post » Sun Oct 19, 2014 9:46 pm

*sounds of brain exploding and brain noodles hitting the wall*

All I did was move the destroy call to the top and it fixed everything. Thank you!!! Sometimes when you look at something long enough it starts to stop making sense.
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
13
S
4
Posts: 303
Reputation: 1,705


Return to How do I....?

Who is online

Users browsing this forum: AekiroStudio, Linetaru and 8 guests