0 Favourites

Suspicious mouse behavior

  • C2 r51.2; Windows XP SP3; FireFox 6.0; ATI Radeon HD 4870

    I recall having posted already about this issue. Maybe the post disappeared in the "incident" that occured a few weeks ago (I recall Ash talking about a manipulation that ended in posts loss).

    Anyway this capx was made in r50 and still doesn't work as intended.

    On right click on "Case", a green little square is supposed to be spawned at the (clicked "Case")'s position. It does appear but disappears right away.

    On left click on "Case", if no "obstacle" is under mouse cursor, an "obstacle" is supposed to be spawned. It is spawned, and stay visible. Nevertheless, clicking on a "case" where there is already an "obstacle" shouldn't spawn a new obstacle.

    Still it does.

    Is my use of the events incorrect or is there a trouble with the invert of the mouse object ?

  • Ah, good find again: it turns out a negated 'mouse over object' condition actually went ahead and picked the objects the mouse was not overlapping. Because there's an offscreen object, it always picks that, and if objects are picked the event runs. That's obviously not how it should work, so now if you invert the condition it never picks anything, just returns true or false depending if the mouse is over one of the objects.

    As for the disappearing object... that had me stumped for a bit... then I checked its animation frames ;)

  • As for the disappearing object... that had me stumped for a bit... then I checked its animation frames ;)

    Silly me <img src="smileys/smiley36.gif" border="0" align="middle" />

    I totally forgot about that anim <img src="smileys/smiley4.gif" border="0" align="middle" />

    Glad to support your support of C2 ^^

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Hey, can you verify this is fixed in r52?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,514
nelostic's avatar
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,904
manujorgo's avatar
Unread hot topic
564 105,225
rexrainbow's avatar