Hello from Egypt

Hey mates, I am really stuck for 2 days in this, would appreciate it a lot if someone could help me out, So I have four images(sprites) and I am rotating them 90 degrees by clicking on each one of them and this is working perfectly, now I want to rotate them smoothly because they rotate in a blink. How to do that? I’ve also added all of my trials in the screen shot.

Hi Abdelsalam,

Welcome to our forum! :slight_smile:

You could use the Slerp method and a coroutine that gets started when the button was clicked. There is an example in the API.


Did this help?

Unfortunately no.

Do you have any other suggestions?


You could use the Animator and an Animation. Controlling the Animator via code is covered in the Glitch Garden section.

Also please feel free to ask our helpful community of students for advice in our official Discord chat.

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms