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

Sigton wrote:

People who only warn Scratchers on the forums for doing something against these suggestions. I'd like to say something:

That's utterly counter intuitive.

The point of this sticky is to give you suggestions on what to and not to do. Simply warning someone is not adding to discussion, which is one of the main points here.
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!

My signature is FIXED!
It no longer breaks the page…
[#000000][#000011][#000022][#000033][#000044][#000055][#000066][#000077][#000088][#000099][#0000aa][#0000bb][#0000cc][#0000dd][#0000ee][#0000ff] 
Goliath, For all you’l ever need.
Yellow, yellow, gimme a banana.
I still have room in my sig!
Q: what happened when the nitwit tried to blow up a bus? (Answer in white)
A: he burnt his lip on the exhaust pipe.
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

Standard | Mobile