Discuss Scratch

-FancyWaffles-
Scratcher
58 posts

Automated Smooth Rotation

Automated Smooth Rotation

So, I've been making a completely automated project (an animation), and I need to implement some smooth rotation for a character's forearms. I've looked up several tutorials and examples to help myself figure it out, but there are two main problems.

1. All of the tutorials have the smooth rotation code triggered by player input. My animation is not at all interactive, and I can't change it to be.

2. Even if I can manage to get the rotation to start without player input, I need it to rotate a certain amount in a certain timeframe. This timeframe is also the incredibly small amount of 0.54 seconds. An attempt with non-smooth rotation also failed to play out in that time despite being coded to.

Even the littlest bit of advice or help will be appreciated!!!
edited for grammar, spelling and minor formatting

Last edited by -FancyWaffles- (May 25, 2023 22:59:30)

thedogcoder440
Scratcher
100+ posts

Automated Smooth Rotation

Just use a different sprite(s) as the arms or use pen
-FancyWaffles-
Scratcher
58 posts

Automated Smooth Rotation

thedogcoder440 wrote:

Just use a different sprite(s) as the arms or use pen
Just to clarify– firstly, the arms ARE their own sprite. In fact, each arm (left and right) is a separate sprite. It would make more sense with context, but I don't have a project to show you. Secondly, half the point of this project is the artwork, which I would be completely unable to replicate with pen.

I need a tangible, non-pen, timeable, automated solution.
also smooth turning code is actually crazy complicated, at least in the context i'm talking about it in.
-FancyWaffles-
Scratcher
58 posts

Automated Smooth Rotation

bump
GreyRodent446
Scratcher
13 posts

Automated Smooth Rotation

Wasnt there like, a, smooth movement project on the home page a while ago?

Powered by DjangoBB