Discuss Scratch

sjpark01
Scratcher
14 posts

how do I rotate this 90 degrees?

I made a little audio visualizer doo hicky but I can't seem to find a way to rotate it. Can someone
help?
Your text to link here…
i was too lazy to use scratch blocks lol

Last edited by sjpark01 (July 24, 2023 00:50:45)

scratchcode1_2_3
Scratcher
1000+ posts

how do I rotate this 90 degrees?

Sorry, but the link you posted doesn't work.

I see that you are trying to post a JPG file from your computer, and those don't work. By the way, you are also sharing personal information by sharing that “link”. You have to use a whitelisted image host like cubeupload or use forbidden word, but I'm not allowed to mention it.
NathanGamesInc
Scratcher
61 posts

how do I rotate this 90 degrees?

whenclickedforeverifkeyleft arrow key pressedpressed?thenrepeat3turn60degrees

Last edited by NathanGamesInc (July 24, 2023 01:27:43)

sjpark01
Scratcher
14 posts

how do I rotate this 90 degrees?

Sorry
whenclicked
setdot#toradius
setcountto1
gotox:radiusy:0
pointindirection0
repeatuntilcounter=rounddot#/2+1gotox:cos360/dot#*counter*radiusy:sin360/dot#*counter*radiuspointindirectionjoin-360/dot#*counter+90changecounterby1createcloneofmyself

Last edited by sjpark01 (July 24, 2023 13:54:13)

Deekshan2012t1
Scratcher
54 posts

how do I rotate this 90 degrees?

im not a good debugger but i would always try my best but in this case, i dont understand anything here.
Can you give a brief explanation on whjat is happening here?
sjpark01
Scratcher
14 posts

how do I rotate this 90 degrees?

So this program takes a sprite and makes a perfect half circle position and rotation. but I can't seem to find a way to rotate the starting position 90 degrees.
Koamodo975
Scratcher
1000+ posts

how do I rotate this 90 degrees?

Sorry if I'm not interpreting this right but why don't you just use:
whenyouwantittorotaterepeat3turn30degrees
sjpark01
Scratcher
14 posts

how do I rotate this 90 degrees?

The problem is I tried that and it has no effect
09878901234321
Scratcher
500+ posts

how do I rotate this 90 degrees?

Can you please share the project so that we can help?
Jaim_animation
Scratcher
94 posts

how do I rotate this 90 degrees?

scratchcode1_2_3 wrote:

Sorry, but the link you posted doesn't work.

I see that you are trying to post a JPG file from your computer, and those don't work. By the way, you are also sharing personal information by sharing that “link”. You have to use a whitelisted image host like cubeupload or use forbidden word, but I'm not allowed to mention it.
Why

sjpark01 wrote:

Sorry
whenclicked
setdot#toradius
setcountto1
gotox:radiusy:0
pointindirection0
repeatuntilcounter=rounddot#/2+1gotox:cos360/dot#*counter*radiusy:sin360/dot#*counter*radiuspointindirectionjoin-360/dot#*counter+90changecounterby1createcloneofmyself
Oh my creator! these math are killing my mind!
Jaim_animation
Scratcher
94 posts

how do I rotate this 90 degrees?

sjpark01 wrote:

So this program takes a sprite and makes a perfect half circle position and rotation. but I can't seem to find a way to rotate the starting position 90 degrees.
[I think i coud not explain it, for help, plese view this scrach project, here is the details and the code: https://scratch.mit.edu/projects/826031084]
Maybe I think I understood what did you wanted. Firstly, make the bottom, middle and up costume of the circle.
costume1= up
costume2= middle
costume3= bottom
whenclickedhideclear
define3dmustcheck"runwithoutscreenrefresh"setytoatwhichxpositionyouwantedtoseethecircleclearswitchcostumetocostume3changeyby1stampswitchcostumetocostume2repeathowmanylargeatheightyouwanted,ifyouwantedfulfilflatputit1changeyby1stampswitchcostumetocostume1changeyby1stampsetytoatwhichypositionyouwantedtoseethecircle
whenclickedgotox:atwhichxpositionyouwantedtoseethecircley:atwhichypositionyouwantedtoseethecircleforeverturn1degrees3dmustcheck"runwithoutscreenrefresh"

Last edited by Jaim_animation (July 28, 2023 04:49:43)

Janhoygato
Scratcher
100+ posts

how do I rotate this 90 degrees?

sjpark01 wrote:

Sorry
whenclickedsetdot#toradiussetcountto1gotox:radiusy:0pointindirection0repeatuntilcounter=rounddot#/2+1gotox:cos360/dot#*counter*radiusy:sin360/dot#*counter*radiuspointindirectionjoin-360/dot#*counter+90changecounterby1createcloneofmyself
Just swap out the x coordinates with the y coordinates.

Last edited by Janhoygato (July 27, 2023 12:28:18)

sjpark01
Scratcher
14 posts

how do I rotate this 90 degrees?

sorry but that just straight up doesn't work
Jaim_animation
Scratcher
94 posts

how do I rotate this 90 degrees?

sjpark01 wrote:

sorry but that just straight up doesn't work
Whose reply? you can try out my reply!That is here. I am offering to make some changes on the last script on mine previous comment so the script will looks like this-
whengreenflagclickedIfyouwanttoshowthecirclesomemomentaftergreenflagclicked,youcanputthereanothereventorif...elsebutmakesurethisscriptwillworkatthetimewhenthefirstscriptonthereplyhappens,elsethepenstampswillhappenwhenourspriteishide,sothepenstampswillalsohidegotox:atwhichxpositionyouwantedtoseethecircley:atwhichypositionyouwantedtoseethecirclerepeatYouwantedtorotate90digrees,soitisrepeat90turn1degrees3dmustcheck"runwithoutscreenrefresh"

Powered by DjangoBB