Trajectory (Construct 3 Behaviours)

  • 3
    This content is deleted
    Addon
    Trajectory

    A Trajectory behavior for Construct 3, simulate 2D physics trajectory and projectile motion.

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • I get this error when exporting with advanced minify:

    working/506442539/c3runtime.js:5918:38: ERROR - [JSC_UNDEFINED_VARIABLE] variable time is undeclared

    5918| this.vx = (targetX - this.curX)/time;

    ^^^^

    working/506442539/c3runtime.js:6111:37: ERROR - [JSC_UNDEFINED_VARIABLE] variable targetPosition is undeclared

    6111| const launchAngle = Math.atan2(targetPosition.y, targetPosition.x);

    ^^^^^^^^^^^^^^

    2 error(s), 0 warning(s)

    • Also sometimes the object falls off platforms with the jump-though behavior when reaching the target and I don't know why.

      Sometimes it happens because the FPS fluctuates or because of the position of the platform.