Quick tap triggers wrong CustomMovement angle of motion

  • Problem Description

    When "on key down" triggers a "set CustomMovement angle of motion" action, if you tap the key very quickly it automatically sets the angle to either 0 or 180 instead of the intended angle. The sprite must not be already moving.

    Attach a Capx

    Done!

    Description of Capx

    Includes 2 sprites, one for moving left with the Q key and one for moving right with the W key.

    Steps to Reproduce Bug

      1. Tap the Q button very quickly. 2. Hold the Q button. 3. Tap the W button very quickly. 4. Hold the W button.

    Observed Result

    • The left arrow will move to the left when you tap Q very quickly. It will move downward and to the left, at the angle of motion in the event sheet (120), when you hold Q. (If it did not start moving left, restart the project and tap the Q button more quickly.) This happens when the angle of motion in the event sheet is between 90 and 270.
    • The right arrow will move to the right when you tap W very quickly. It will move upward and to the right, at the angle of motion in the event sheet (300), when you hold W. (If it did not start moving right, restart the project and tap the W button more quickly.) This happens when the angle of motion in the event sheet is between 0-90, or 270-360.

    Expected Result

    • When tapping Q, the left arrow should move downward and to the left at an angle of 120.
    • When tapping W, the right arrow should move upward and to the right at an angle of 300.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: YES

    Operating System and Service Pack

    Windows 8.1,

    Construct 2 Version ID

    Release 195, 64-bit

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as not a bug. You need to set the speed before setting the angle. If the speed is 0, then setting the angle of motion has no effect, because there is no motion.

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