Discuss Scratch

MasterPC7
Scratcher
20 posts

Pivot Block

What if there was a new block in the Motion catigory that allowed you to rotate a sprite around a piviot point.

2 blocks.

1. Rotate sprite around (List of sprites) by (#/Variable)

2. Rotate sprite around (X, Y) by (#/Variable)

This can be usful for making armitures and characters for animations. This can easilly turn hours of animating manually/Struggling with the math, into 2 seconds of setting variables easilly.
AvidOsirianGuy
Scratcher
100+ posts

Pivot Block

Good idea, what about a Set Pivot Point block? This is what it would look like:
set pivot point to x: () y: () :: motion
MasterPC7
Scratcher
20 posts

Pivot Block

Yea, something like that.
michaeljackson1365
Scratcher
1000+ posts

Pivot Block

There's a workaround:
move () steps
turn cw () degrees
MasterPC7
Scratcher
20 posts

Pivot Block

AvidOsirianGuy wrote:

Good idea, what about a Set Pivot Point block? This is what it would look like:
set pivot point to x: () y: () :: motion

Something more like this.

Pivot around x: () y: () steps: () :: motion

And another block could be:
Set rotation around Pivot x: () y: () to () :: motion

That way the variables can control a specific rotation around the custom pivot.

Last edited by MasterPC7 (Feb. 28, 2025 18:29:39)

MasterPC7
Scratcher
20 posts

Pivot Block

So that way, the center of the sprite can stay the same and pivot around a specific point or around a sprites center.
AvidOsirianGuy
Scratcher
100+ posts

Pivot Block

MasterPC7 wrote:

(#6)
So that way, the center of the sprite can stay the same and pivot around a specific point or around a sprites center.
Ah okay, I get you.
MasterPC7
Scratcher
20 posts

Pivot Block

michaeljackson1365 wrote:

There's a workaround:
move () steps
turn cw () degrees

Yes and No. That may work sometimes, but in a lot of cases, that would't. For example, if you wanted something to rotate when a slider variable is slide, its most likly wouldn't work.
MasterPC7
Scratcher
20 posts

Pivot Block

I actually remember seeing a game where you rotates 2 colored balls on 2 differant pivots and seperate them into 2 wheels.

Powered by DjangoBB