Discuss Scratch

Average_Canadian
Scratcher
1 post

Im trying to make a Sprite Rotate Around a Margin/Sprite.

I dont want it it spin. i kind of want it to circle around the Margin/Sprite. Can Someone please comment a code down below?
NeonG4
Scratcher
1000+ posts

Im trying to make a Sprite Rotate Around a Margin/Sprite.

Average_Canadian wrote:

I dont want it it spin. i kind of want it to circle around the Margin/Sprite. Can Someone please comment a code down below?
There should be a custom block inside, which is the rotate custom block. However, you first need to go to your original coordinates first before rotating.
https://scratch.mit.edu/projects/898631902/

Last edited by NeonG4 (Sept. 26, 2023 01:50:46)

Gamergalaxy689
Scratcher
100+ posts

Im trying to make a Sprite Rotate Around a Margin/Sprite.

yeah, the one above could be pretty cool, but I have a simpler (but probably a tad less dynamic):
just don't make the sprite centered and then spin it. sprites always spin around their center point, therefore because the sprite is not centered and is NOT at the center point, will spin around the center point instead of spinning itself.
kriblo
Scratcher
100+ posts

Im trying to make a Sprite Rotate Around a Margin/Sprite.

Average_Canadian wrote:

I dont want it it spin. i kind of want it to circle around the Margin/Sprite. Can Someone please comment a code down below?

// in the sprite you want to "circle" around a Center Sprite
when green flag clicked
forever
go to [Center Sprite v] // this, the Center Sprite, can move around or be stationary
move (100) steps // sets the distance to the center of Center Sprite
turn cw (5) degrees // sets the speed of circling
end

Powered by DjangoBB