A little question about SWAPPING by keys

Hi, I want to make a swapping system, but I don’t understand how I should do it…

I want something similar as in the sketch, I just need the structure with which this system could be created. I kept looking for tutorials but I couldn’t find anything. :frowning:
I hope you understand the sketch.

Maybe you can help me with some advice or a tutorial.
Thanks in advance!!

If I understand it right
Just add an Int variable and increment or decrement it depending if E or Q is pressed. Make an array of animations and get an animation based on the Int value.

Don’t forget to clamp the Int value between 0 and 3, or the system will break.

2 Likes

Yeahhh, it’s working!! Thanks a lot!!