mouse is overlapping problem

Not favoritedFavorited Favorited 0 favourites
  • 6 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Hi everyone,

    I have a problem in Construct 3: I want an animation to stop when the mouse is over three specific objects, and to play again when the mouse is not over these objects.

    However, the animation stops immediately at the start, even though the mouse is not over the objects.

    I’ve already tried using OR conditions and Else, but it doesn’t work as expected.

    Does anyone have an idea how to solve this without using global variables?

    Thanks in advance!

    Tagged:

  • Looks like the “start animation” action isn’t functioning, but setting the animation from the current frame does work.

    So instead of

    Start animation from current frame

    Do

    Set animation to self.animationName (play from current frame)

    Looks like it’s a bug even in C2. Probably worth reporting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi.

    I'd suggest you put these objects into a group to get rid of all those “or”s.

    I'd also recommend moving your “else” condition somewhere else.

    Here's an example in the screenshot.

  • I don’t fully understand the code yet. Why does it suddenly work even though I did not set the second event to Invert? Does Else automatically make the next event the negative condition, or how exactly does that work?

  • I don’t fully understand the code yet. Why does it suddenly work even though I did not set the second event to Invert? Does Else automatically make the next event the negative condition, or how exactly does that work?

    Here is an example where this problem is solved in two different ways; you need to select the solution you prefer.

    fex.net/s/2be0lvk

  • Oops, so mine was actually wrong after all? Now everything makes sense to me — it is clear now how it works. But strangely, the way I posted it also worked.

    Thank you, you are a great help!

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