8 Direction is moving event (possibly reversed)

0 favourites
  • 3 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • Link to .capx file (required!):

    dropbox.com/s/agnf0ta06h6635o/Pacman%20issue.capx

    Steps to reproduce:

    1. Using the 8Direction is moving event

    Observed result:

    The event seems to be in reverse. If I use 8Direction is moving, then actions will not trigger until the sprite has stopped moving. However, if Inverse the event to NOT 8Direction is moving then the actions trigger while the sprite is moving.

    Expected result:

    Actions should trigger under the event 8Direction is moving and stop when sprite has come to a halt.

    Browsers affected:

    Chrome: yes

    Firefox: (unknown)

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8.1

    Construct 2 version:

    r156 beta 64-bit

  • The problem is with your events. When not moving, you're continually starting the animation to it's current frame. So if the instance stops moving while it's frame is 1, your events will continually set the animation frame to 1, making it look like the animation isn't playing at all. When the Pacman instance is moving, events are no longer continually setting the animation frame, so the animation plays normally.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Aren't I the silly one. Thanks heaps for the quick reply!

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