Replies: 1 comment
-
|
After look into the docs. I think I misunderstood the usage of direction from sentry component. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I took reference from the ghosthunting example and set the sprite on the path to follow.
The sprite is facing left as default. So I need to flip it base on the direction.
I've checked both direction and directionAngle with onUpdate event, but the result is undefined in every frame. Also, the vel property says both x and y is 0.
Is there anyway to know which direction the sprite is moving?
Beta Was this translation helpful? Give feedback.
All reactions