- Home /
Question by
bornoflightning · Jun 22, 2019 at 03:34 PM ·
y axis
I created a fire sprite, i want for it to flip on the y axis continously to make it seem like the fire is alive.
how do I make my sprite flip on the 7 axis continuously?
Comment
I think your best bet would be to make a custom animation inside of unity using the graph editor, you should simply be able to for instance a 3 second clip, at 1.5 seconds change its scale in the Y by -1 (or whatever the flip version would be) and back to normal at 3 seconds, then get the clip to loop.
Alternatively, you can do the same thing as a coroutine but I don't think that's very efficient.