I have created a sprite that i want to rotate. Now i have asked this question in a previous post and got some great help from the replies. However it wasn't exactly what i was looking for. The rotation of the sprite should show the different frames so to speak (see picture attached) between each 90 degree and.
The idea is that the sprite is a square. Each side of the square works differently during the game. And when you click a button the square will rotate 90 degrees.
Link to the previous post mentioning this: