How do I disable an every tick condition?

  • Hey,

    The plan was to make it so, every time I clicked, the Sprite2 moved in a parabola to targets x and y. I'm sure I overcomplicated things with all these instance variables (I'd appreciate if someone told me an easier way), but it kind of worked in the end. The Sprite2 does move in a parabola once I click, but it keeps going down past the target location.

    Seems like it's because the every tick action doesn't stop once the mv_pgs (movement progress) gets to 1, as when I displayed the variable, it kept increasing. Thus, how would I fix that?

    Thank you really much for any help given.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Floating point math can have rounding errors, so there is no guarantee the value is exactly 1.0. Change event 31 to mv_pgs <= 1 and use Else to reset, rather than event 33.

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