So I have an object that has a sine wave behavior, and I want the sprite to be mirrored when its moving right.
Any suggestions?
You need to check Sprite.Sine.CyclePosition
I believe it changes from 0 to 1, and values between 0.25 and 0.75 is when the sprite is moving to the left.
could you show me the code for it please
In Construct it's better to design all sprites facing to the right. So to mirror when it's going left do this:
If you have more than one instance of this object, put this code inside of "For each" loop.
Develop games in your browser. Powerful, performant & highly capable.
It works, thanks alot