Problem with Condition - Animation Direction
I'm having a problem when I use this condition: "(object) is facing (direction)" in a fighting type game I'm working on.
No matter what direction the object is facing, if I set the event so that it reads "(object) is facing (right)", the event will process no matter what direction the object is actually facing. Conversely, if I have "(object) is facing (left), the event will never process even if it is indeed facing left.
I have the animations set up properly in the active object's properties, and I even have events which face the player and opponent based on a comparison of their x-coordinates, which surprisingly work fine.
I suppose I could get around this problem by using variables for the facing, since the direction action works, just not the conditional. Does anyone have any idea why this is happening, or how to fix it?
Re: Problem with Condition - Animation Direction
There may be another event in there that is conflicting with it.
Re: Problem with Condition - Animation Direction
I don't think that is the case, there are very few events relating to direction and changing direction in my game, and I've checked over them many times. Also, the events that were broken before because of the non-working direction conditional work now that I made my own variables for right and left (0 and 1). So I don't think this was a simple conflict issue or oversight by me.
Re: Problem with Condition - Animation Direction
If I were to take a guess, I would say the "facing" condition is only effective if you are using MMF's inbuilt movements. Once you start controlling the direction (by forcing angles) you will need to check if the object is equal to an angle. This would mean that facing right is angle = 0 and facing left is angle = 180.
Just a guess,
mobichan