Johnny197622's Forum Posts

  • 5 posts
  • 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!

  • 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?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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:

  • Thank you, igortyhon. Your example was really good. I had actually managed to do it myself in a different way, but your example is very good. I appreciate your help.

    I do have one external question though: I saw that there were problems with the Steam extension and I read a bit about it, but it seems to be fixed now, according to Ashlay, right?

  • Hello,

    I’m trying to scale a card depending on how close it is to a character. The problem is that I have several different character objects grouped into a Family, and I want the card to scale based on the nearest character in that family.

    However, I cannot find a Nearest function in Construct 3 that works like this.

    Here is the code I tried:

    Set Scale ---> max(0.2, min(2,

    distance(Card.X, Card.Y,

    Familie1.Nearest(Card.X,Card.Y).X,

    Familie1.Nearest(Card.X,Card.Y).Y

    ) / 400))

    My question is:

    How can I calculate the distance from a card to the nearest object in a family, when there are multiple objects in that family?

    Is there a recommended way to do this in Construct 3?

    I’m still new to Construct 3, so any tips would really help.

    Thanks a lot!

    Thorsten

  • 5 posts