I would like to to something like this:
while (sprite.xscale > -1){
sprite.xscale -= 0.05;
}
the effect would be kinda like a paper mario turn.
I can't find anywhere to manipulate the xscale.
Any thoughts?
If you want a proper paper mario turn, I don't think it is possible because mario is a plane and this "plane turning effect" could be only achieved by 3d engines. BUT I think you could create the illusion of it with sprite animation. Hope this helps.
I thought of that too but I don't se how that would be done with a walking animation
altering the xscale on a playing animation would have solved it.. I tried the LiteTween plugin but it wont go from 1 to -1 just from 1 to 0
edit:
going from mirrored to not mirrored in a chosen number of steps...
Develop games in your browser. Powerful, performant & highly capable.
edit: going from mirrored to not mirrored in a chosen number of steps...
Exactly... And these number of steps state could call the flip animation