Heyo! I'm new to Construct and I love it so far!
However, I've got a question...
I have an object with a Platform behavior. I'd like to make it so when the object has a horizontal speed below 0 (meaning it moves left) the sprite mirrors left. When the horizontal speed is above 0 (meaning it moves right) the sprite unmirrors to the right. I have the actions down just fine, but it seems the conditional for the object is just comparing it's SPEED, which also applies to itself vertically.
How do I track an objects HORIZONTAL speed?
Thanks in advance!
New Condition > System > Compare 2 values > Object.Platform.VectorX
This isn't normally done by the VectorX, usually it's done by keypresses instead:
+ On left pressed
-> Set mirrored
+ On right pressed
-> Set not mirrored
Is there a problem with using the vectorX idea.
I have a problem with using the keys pressed technique, when pressing both it is possible to have the sprite walk backwards.
Develop games in your browser. Powerful, performant & highly capable.
Yes, VectorX should work as well.