Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to animate with Sin and Cos!
- kribyV
- Scratcher
7 posts
How to animate with Sin and Cos!
Ok
Uh
Bob
So first have sprites
Then get motion block (duh)
Direction:
Also have a forever block constantly changing the variable, for me it is move.
Ect ect ect
Sin
*
+
-
Ectectect
Ok bye
Any questions then ask
K?
K.
Uh
Bob
So first have sprites
Then get motion block (duh)
set x to (0)Then put in the + blocks
set y to (0)
set x to ((0) + (0))Then, in the following order, put the + block in the 1st slot of the + block, then the * in the 2nd slot of the 1st + block. After that put another * block in the 1st slot of the * block, and then the abs of “” and set it to sin. Then put this block in the 1st slot of the 2nd * block. Also make a variable and put it inside the sin block. It should look like this:
set y to ((0) + (0))
set x to (((0) + (0)) + ((([ sin] of (move)) * (0)) * (0))To lazy to explain the rest lol funny
set y to ((0) + ((0) + (((0) - ([( sin] of ((move) * (0)))) * (0))Sorry for red can't fix it
Direction:
point in direction ((90) + ((0) + (((0) - ([( sin] of ((move) * (0)))) * (0))Also can't fix red
Also have a forever block constantly changing the variable, for me it is move.
foreverTl;dr
change [ move] by (0)
end
Ect ect ect
Sin
*
+
-
Ectectect
Ok bye
Any questions then ask
K?
K.
Last edited by kribyV (Oct. 12, 2021 02:33:46)
- STORMY52
- Scratcher
3 posts
How to animate with Sin and Cos!
wow
when green flag clicked
broadcast [make a storm v]
wait (3) secs
play sound [ storm sounds]
when I receive [ stop storm]
stop [all]
- Nezon
- Scratcher
1000+ posts
How to animate with Sin and Cos!
Please don’t create tutorial threads.
This is my signature (it goes automatically under every post I make)! Here is a bit of advice on foruming, by the way. Don't do SAND. SAND means four words.
SAND means Spam, Advertising, Necroposting, and Derailing.
Spam is when a irrelevant message is sent to many places. Wiki Article: Spam
Advertising is when you promote your studios and projects. Wiki Article: Advertising
Necroposting is when you post on a old topic. It distracts other helpers! Wiki Article: Necroposting
Derailing is when you post something that is irrelevant to the topic, like minimodding. It is called thread hijacking. Wiki Article: Derailing(Derailing idea comes from this guy),
in the process of leaving scratch.
bob has been hidden again :(
- kribyV
- Scratcher
7 posts
How to animate with Sin and Cos!
wha Please don’t create tutorial threads.
this still helps with script -_-
- Paddle2See
- Scratch Team
1000+ posts
How to animate with Sin and Cos!
Hello! It's great that you want to help out other Scratchers. However, I think we have enough guides in the forums at the moment. Please feel free to welcome new Scratchers on the group welcoming topic or on individual topics created by New Scratchers.
Other places that can always use more helpful Scratchers like you, are the "Help With Scripts“ and ”Questions About Scratch" areas - please use them as designed, by responding to topics created by folks with problems to solve
Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization.
Other places that can always use more helpful Scratchers like you, are the "Help With Scripts“ and ”Questions About Scratch" areas - please use them as designed, by responding to topics created by folks with problems to solve
Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization.
Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.
This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)
;
- Discussion Forums
- » Help with Scripts
- » How to animate with Sin and Cos!