8 Direction doesn't stop when next to a wall.

0 favourites
  • 2 posts
From the Asset Store
16 Direction Capx
$3 USD
40% off
Rotate & Animation for 16 Direction & Mouse Direction
  • Problem Description

    A sprite with the 8 direction behavior doesn't stop moving when it's next to a wall. It stops close to a wall, but leaves a gap between the object and the wall.

    The platform behavior stops moving when next to a wall, but the 8 direction behavior doesn't.

    Attach a Capx

    https://www.dropbox.com/s/au8q91bxu1ck8 ... .capx?dl=0

    Description of Capx

    The green sprite doesn't stop moving when next to a wall, but the blue sprite does stop moving.

    Steps to Reproduce Bug

    • Move the object left or right until you hit a wall.

    Observed Result

    The green sprite doesn't stop moving when next to a wall, but the blue sprite does stop moving.

    Expected Result

    The green sprite should stop when next to a wall just like the blue sprite.

    Affected Browsers

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

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    r246

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's stopping as soon as its next step would go in to an obstacle, which with a high speed/acceleration can leave a visible gap as the step size is large. I've adjusted the next build to search for a much closer position when this happens so it should always be left adjacent.

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