Discuss Scratch

nickliu
Scratcher
11 posts

new block idea for 3.0 [rotate around x,y point]

i think that a block should be added that can rotate a sprite around a point.


rotate clockwise () degrees around X:() Y:()

Last edited by Paddle2See (June 4, 2018 11:49:48)


nickliu
wWSunPandaWw
Scratcher
1000+ posts

new block idea for 3.0 [rotate around x,y point]

No Support, this is a simple and easy workaround:
Do this one to turn clockwise:
go to x: (18) y: (14) // or any place you want the sprite to go 
turn cw (15) degrees
Do this one to turn counter/anti-clockwise:
go to x: (18) y: (14) 
turn ccw (15) degrees
You can also choose a new enter for your sprite in the paint editor using the centering tool, to make it rotate differently.

I moved to BelieverGirlSun
E_Equals_EmCeSquare2
Scratcher
33 posts

new block idea for 3.0 [rotate around x,y point]

Although workaround-able with
define turn cw (θ) degrees around x: (x) y: (y)
set [radius v] to ([sqrt v] of ((((x) - (x position)) * ((x) - (x position))) + (((y) - (y position)) * ((y) - (y position))))
go to x: (((radius) * ([sin v] of ((direction) + (θ)))) + (x)) y: (((radius) * ([cos v] of ((direction) + (θ)))) + (y)
turn cw (θ) degrees // that (θ) is the Greek letter theta.

one wouldn't expect younger users to be able to work it out easily, so support for

turn cw () degrees around x: () y: () :: motion 

Plus, it's quite a long workaround.

Last edited by E_Equals_EmCeSquare2 (May 29, 2018 14:34:07)

E_Equals_EmCeSquare2
Scratcher
33 posts

new block idea for 3.0 [rotate around x,y point]

wWSunPandaWw wrote:

No Support, this is a simple and easy workaround:
Do this one to turn clockwise:
go to x: (18) y: (14) // or any place you want the sprite to go 
turn cw (15) degrees
Do this one to turn counter/anti-clockwise:
go to x: (18) y: (14) 
turn ccw (15) degrees
You can also choose a new enter for your sprite in the paint editor using the centering tool, to make it rotate differently.
I don't think that's how they meant by this block, I thought that this block causes the sprite to rotate (θ) degrees about the axis of rotation at (x, y), not rotate from the point (x, y).

Last edited by E_Equals_EmCeSquare2 (May 29, 2018 14:38:20)

Mr_PenguinAlex
Scratcher
1000+ posts

new block idea for 3.0 [rotate around x,y point]

E_Equals_EmCeSquare2 wrote:

wWSunPandaWw wrote:

No Support, this is a simple and easy workaround:
Do this one to turn clockwise:
go to x: (18) y: (14) // or any place you want the sprite to go 
turn cw (15) degrees
Do this one to turn counter/anti-clockwise:
go to x: (18) y: (14) 
turn ccw (15) degrees
You can also choose a new enter for your sprite in the paint editor using the centering tool, to make it rotate differently.
I don't think that's how they meant by this block, I thought that this block causes the sprite to rotate (θ) degrees about the axis of rotation at (x, y), not rotate from the point (x, y).
I think they mean to orbit around that area

TheRealNetherBefore
Scratcher
1000+ posts

new block idea for 3.0 [rotate around x,y point]

Semi-support- the workaround is complex however I don't really see situations where I'd use the block.

*Drinks ketchup*
there is no ethical consumption under capitalism my dudes
Small Games | Tips and Advice | Boredom Cat | Misc
Want to make a fantasy world everyone on scratch can use? Click here!
G'thorpax the Unspoken
radishboy
Scratcher
100+ posts

new block idea for 3.0 [rotate around x,y point]

TheRealNetherBefore wrote:

Semi-support- the workaround is complex however I don't really see situations where I'd use the block.

I agree

StormCrow Storm
ACE009
Scratcher
100+ posts

new block idea for 3.0 [rotate around x,y point]

radishboy wrote:

TheRealNetherBefore wrote:

Semi-support- the workaround is complex however I don't really see situations where I'd use the block.

I agree
I don’t foresee much use either since most of the time you need one rotation point and can just set the costume center wherever that may be.

when this signature read :: events hat
if <I know what [kumquats] are :: sensing> then //false
have (Katty :: pen) [eat v] [nearby kumquats v] :: motion // Katty eats the kumquats for me, whatever they are
else
learn what [kumquats] are :: sensing // this block must be malfunctional
end
convoluto-
Scratcher
100+ posts

new block idea for 3.0 [rotate around x,y point]

ACE009 wrote:

radishboy wrote:

TheRealNetherBefore wrote:

Semi-support- the workaround is complex however I don't really see situations where I'd use the block.

I agree
I don’t foresee much use either since most of the time you need one rotation point and can just set the costume center wherever that may be.
This. ^
I hate the 120 second rule.

Expert memelord in the making.
So far, I've made: 3 memes! ( in photoshop )

You cannot trust any of my posts because I am dumb. Some may be right, though.
Loquat + kumquat protector: - Bob
nickliu
Scratcher
11 posts

new block idea for 3.0 [rotate around x,y point]

TheRealNetherBefore wrote:

Semi-support- the workaround is complex however I don't really see situations where I'd use the block.

perhaps you could use it during collision simulators perhaps like some sort of multiplayer sumo wrestling game with plane possibly like cosmoteer.

nickliu
Seam49
Scratcher
500+ posts

new block idea for 3.0 [rotate around x,y point]

Support, although there is a block workaround, A lot of other blocks have workarounds too, very useful!

Tea. Chocolate.
Happysoul05
Scratcher
100+ posts

new block idea for 3.0 [rotate around x,y point]

No support.

Yes Setting costume center can be a problem but use a different duplicated costume for that.
When using that type of rotation,
Switch to that costume ,rotate and switch back to old one.
wWSunPandaWw
Scratcher
1000+ posts

new block idea for 3.0 [rotate around x,y point]

Mr_PenguinAlex wrote:

E_Equals_EmCeSquare2 wrote:

wWSunPandaWw wrote:

No Support, this is a simple and easy workaround:
Do this one to turn clockwise:
go to x: (18) y: (14) // or any place you want the sprite to go 
turn cw (15) degrees
Do this one to turn counter/anti-clockwise:
go to x: (18) y: (14) 
turn ccw (15) degrees
You can also choose a new enter for your sprite in the paint editor using the centering tool, to make it rotate differently.
I don't think that's how they meant by this block, I thought that this block causes the sprite to rotate (θ) degrees about the axis of rotation at (x, y), not rotate from the point (x, y).
I think they mean to orbit around that area
I said you can do that by changing the center of the sprite in the paint editor to make it appear that it's rotating b around a different point.
you can workaround blocks with the paint editor??? Who knew???

I moved to BelieverGirlSun

Powered by DjangoBB