Hi! I’m making a little game, where I have the frames for the animations in PNG form.
Can anyone help me design a script that will allow me to show the walking animation whenever the character is walking right (It’s a sidescroller), and a script for the jumping whenever “Up” is pressed?
Thanks.
Edit: Please let me know what else I need to provide.
The cube with the main PNG for the character is called “Player”
that would only be possible if you would state what you need help with. as (hopefully) noone does it entirely for you.
side note: usually the animations are stored in the same texture as switching the texture for every animation step is quite costly. so usually you alter the uv coordinates of your quad.
note: unity has a built in 2d stuff but i have never worked with it. i’m, sure you find some tutorials for it when you do a search.