Make waves in Scratch with sine
The sine block is a powerful tool for creating smooth movements or transformations in Scratch. This green math block is borrowed from trigonometry, but you don't have to know any advanced math to make use of its wavy goodness! Mr. T demonstrates in his latest Scratch Hacks tutorial.
00:52 The sin block and how it works
02:41 Make a virtual fishbowl
07:41 Epilogue
Here's the Scratch project we created to illustrate some examples of the sine function in action. scratch.mit.edu/projects/8637...
Original Scratch art by @MissLynne71
Music Credit: Losing My Mind by NEFFEX, KZhead Audio Library License
****** IF I WERE A FISH AMV *******
To help illustrate the sine function and how it can be used in projects, we created a fun animated music video, based on the viral song and video by Corook.
Check out the Scratch version here: scratch.mit.edu/projects/8619...
Watch the KZhead Short: • If I Were A Fish - Ani...
========TRY OUT OUR LIP SYNC TOOLKIT========
Andy's lip sync animations were created using our new lip sync toolkit. If you want to try animating fun lip sync animations in your own projects, just visit our project page at scratch.mit.edu/projects/8449... and drag the lip sprite into your backpack. Deploy it in any project by removing your sprite's mouth and replacing it with the animated mouth. This week we've added a whole new set of slightly more cartoony lip animations to the project!
To use the custom block, just type the sounds you want to speak into the white input bubble and edit the text by adding the number 5 to add a 0.5-second delay or a 1 to add a 0.1-second delay. See the video for a full tutorial.
=========================================
You'll find more of the Scratch files we used to create our tutorials in this studio: scratch.mit.edu/studios/32681076
Created by Atomec Studios and narrated by veteran tech educator Andrew Tomec, SCRATCH HACKS is a new series of quick and simple Scratch coding tutorials aimed at beginner- to intermediate-level coders. Scratch Hacks aim to take the fear factor out of coding with byte-sized video tutorials that offer tips and advice on the most common questions and problems that arise when youngsters first take up coding in Scratch. In his work as a Canadian elementary school teacher, Mr. T has taught hundreds of introductory coding classes to children from kindergarten up. "I was struck by how often the same simple questions arise in every class I teach. Learning to code is like learning any other language, and these compact lessons will help give learners the vocabulary they need to express themselves in the digital world."
WHAT IS ATOMEC STUDIOS?
Atomec Studios is a non-profit learning initiative that aims to put the A into STEAM with fun and accessible learning that emphasizes creative expression over algorithms. We believe that kids learn best when set free to pursue their own unique passions, a goal that's been aided tremendously by the growth of powerful, kid-friendly software like MIT's Scratch, that unlock the world of animation, storytelling, game production, music composition and digital art.
For more information about our online content and real-world workshops and teacher training, visit our website at atomec.com.
#scratch #coding #sine #tutorial #lipsync #smoothmotion
the andy lore is expanding
Yes, our noobs video, which introduced the Andy character, was so well received that it got us thinking more and more about wrapping these tutorials into a funny meta story. We haven't had ton of feedback on our change in direction, but our viewership continues to grow, so we must be doing something right.
@@atomecstudios it's funny because my name is Andy but I am good with scratch
@@BoysInTheToasterUnblockeralternate universe andy
@@spiderbatkids5317 lol
Andy lore official 6000
This came out at such a convenient time, I was literally making a Scratch project using this technique! This helped it explain so much more, thank you!
Glad you found it helpful!
honestly this helped me understand sine better then I have before and it helped with my current game dev experiences even if I'm not using scratch anymore. great video!
Thanks! This was really challenging concept to explain, and it's awesome to see that others are finding it useful.
Thanks so much, ive always wanted to make smooth movements effect like this and the sine operator is really cool, Keep up the good work!
Thanks. A very useful tool, but difficult for new scratchers to understand without a lot of visuals and examples. Hoping this tutorial helps a lot of Scratchers grow their skillset.
Thanks!! As I said before, I never bothered to learn all the math stuff in scratch before! That will really help my projects!!!
We love hearing this kind of feedback. These concepts aren't obvious to kids who are starting out in Scratch, many of whom are years away from learning advanced math concepts in high school. We've always believed that you don't need to understand the underlying math to make good use of these tools. My son was pretty indifferent to math growing up, but was using blocks like sin and mod all the time in his game projects. By the time he started actually studying trig and physics in high school, it was a piece of cake.
@@atomecstudios That's so nice that you can teach kids complex things like that...
Thanks so much now I can use it for projects
Glad you found it helpful!
Thank you so much! I’m gonna use this in my projects!
Yeah, it's a pretty awesome little bit of code. Sin and mod are the two blocks I learned very late in my time as a scratcher, and I can't believe how useful they are.
Your truly a better teacher on scratch then most on KZhead a lot of them are argent and self important and do little to help understand. I hope you keep making videos.
That's very kind of you to say. We're loving making these tutorials, and we plan to keep doing them for a long time to come. We've been super busy lately, but we hope to start publishing new content regularly again this fall.
Another amazing tips and tricks vid from Atomec.
Wow! This has helped me for the past few months! Thanks Atomec!
i have used it many times,thank you!
Yeah, most experienced Scratchers are using this already, but new little Scratchers are logging in every day, and SOMEBODY'S gotta show them the ropes! Thanks for your comment!
@@atomecstudios Hmmm,can you make some tutorial about cos,tan,abs...on scratch?
Glad your getting into more complex topics! This will surely help in my next project!
Thanks for the feedback! We set out making these tutorials for new Scratchers, but based on the comments it looks like a lot of more advanced Scratchers are watching this as well. We're going to keep making stuff for beginners, but we know you're out there and we're going to make sure to throw something your way from time to time.
I never knew what the sin block mean’t, now that I watched this video, I finally know about this block and it could be useful for my project. Thank you for pointing out this useful block.
That's the kind of feedback we love to hear! We got into this because there are so many kids out there who want to learn, who don't know where to start, and who only need to learn a few simple techniques to make something amazing.
Thanks so much! I needed this for my guided missile project! (I used your guided missile tutorial)
Cool! Please share when you're done.
@@atomecstudios Ok thank you! I think you would love my computer science teacher!
new scratchers if they wanna make a 3d game :
even though i have been using scratch for almost 3 years right now i actually learned something by watching this :)
Thanks! We love hearing feedback like this! 🤩
Ive been using it for longer than 3 years and still learned something new from it
THANKS
Glad you enjoyed!
i love this
Thanks! This was a challenging one to put together, but we're very proud of it.
I like the goofy imperfections andy's projects have sometimes, like the goldfish simulator title card being off center, like the sprite was created but never centered lol
Thanks for noticing! We've worked with a lot of new scratchers like Andy, and it's amazing how often you see the same little mistakes come up.
This is actually useful!
Thanks! We hope you'll find more useful info in our other tutorials.
Bro in 6:39 he sounded like a 16-bit video game 💀
I might make a rythm game with this!
that fish is goofy ahh, but atleast he has some sick moves at 0:38 🗿🗿
and the low quality at 6:40
Andy says he's a bad fishy, but we think he's just misunderstood.
@@atomecstudios true true
Imagine Scratch Block Lore (sin of block will be the villain)
It really is the baddest block in Scratch!
@@atomecstudios That's why i made it the villain
Great Coding!
Thanks!
Can you do the other complex math operator blocks
Our second favorite math block is mod, which we covered pretty thoroughly in this video. kzhead.info/sun/eaqQoMlln2lveps/bejne.htmlfeature=shared&t=217 We'll be using the floor block in a future video on graphical number generators, but we're not sure about the rest. We're trying to create lessons here that a smart 10 -or 12-year-old might be able to understand, so we're reluctant to get into a lot of complex math that is over everyone's heads (including our own!)
You know you can use the sine of timer since its always changing but you can't change how much it changes by
Yeah, it's easier in some ways, but as you mention, that approach has some drawbacks. Using the timer for this function also means you can't use it for other purposes.
Any tutorials for sine wave?
The tutorial you're commenting on teaches exactly that.
The andy's raging at goldfish that is going wrong way is Too Funny Comedy
Thanks! 😁
what if you want it to stop at a certain time
Instead of putting your motion into a forever loop, try using a "repeat until" loop. You could say something like "repeat until variable SineMovement=0" and then when that variable gets switched to zero the loop will stop executing. Does that make sense?
Hey can you also make more complex tutorials . Most of these i already know but some like the smooth movement i did not know. Also the i just learned what sine does (btw i learned it by myself by experimenting) and i only used the set y or x instead of x by i think the set is eaiser to use, the more the variable changes, the faster it goes and multiply by the distance you want to go to. Thank you im 10 and this channel teaches me newthings each video.
Thanks for a great comment. We're trying to keep these Scratch Hacks tutorial simple enough that new Scratchers your age can follow along without getting lost, so there's a limit to how complex we want to get. I was doing a lot of more complex projects on my old channel, and I'll probably be bringing some of those ideas back in future tutorials. It probably won't be Scratch Hacks, though, but something a little different.
@@atomecstudios thank you and your welcome
At 5:05 you say you have to start at the right but this is easily fixable if you use "set x to" instead of "change x by"
You're correct, of course. You can "set" any of these attributes instead of changing them, but you're going to have to multiply by a much larger number. For the purposes of this tutorial I wanted to use the same approach for all the transformations I was setting up, but I did end up adding an extra step because of that. Thanks for your feedback!
Note For Atomec Studios: Don't Delete The Video To Fix It, I Like It And I Like My Sounds CRONCHY. Also Pin This Comment plz or i will crush you with my announcer crusher (joke) People Who Notice The Audio Quality Change ⬇
I'm not even sure what you guys are talking about. The audio sounds just fine on our end.
You should get 100k subs
Thanks! We're closing in on 1,000 now, and feeling very good about our growth.
@@atomecstudios You did get 1000 so now its 2000
or you could do 1. create new var and name it "cos" 2. do this code ------------------------- when flag clicked set x to () y to () set [cos] to 0 forever change [cos] by (8) change y by ((cos) of (cos)) (first cos is the block (cos of (), second cos is the var inside of the blank) end
I think this was the first video I watched on your channel, or the top 3 noob mistakes.
We love repeat viewers! Glad you're enjoying the tutorials.
@@atomecstudios Thank you sir :)
Its like the speed video but better and I like it
Thanks! Not sure what you mean by speed video, though.
@@atomecstudios I meant kzhead.info/sun/nLeCoNuHb2aaink/bejne.html
And look at you now. You now have 1K reasons to celebrate! Edit: K means thousand in subscribers, followers, or it can be an abbreviation for thousand
Thanks! We're just putting the finishing touches on a fun little video to celebrate hitting this big milestone.
Love it 😂
Thanks!
Well Are Code Is Not Working In Make Waves
7:36 Yes, Goldfish Don’t Have Stomachs. Instead, They Have A Intestines Which Nearly Functions Like A Stomach. The Flaws Are, It’s Hard To Know If They’re Full.
One Thing Wrong Is That Goldfishes Aren’t Even A Dangerous Fish
Andy knows lots of facts, but he doesn't always put them together the right way.
Hey, All the tutorials are pretty helpful! also I'm working on a big game project called, "Big World, Little Cat" it will come out soon! - Luke Reed
Thanks! Please share when you're ready to show it to us.
you just got 1K subscribers, Congrats! I have 3k subscribers but i hope you get there soon! :)
Thanks! Now that we've passed that criticall 1,000 threshold, we're very optimistic about future growth.
1:40 By This *Desmos My Reference* Timer Is x
almost 1k
0:38 what the frick man this is funny 😂
The fishy be weird today...
1k subs already
why is nobody replying
ok ive tried dat
Don't use a variable!!! Use a timer block. It saves time and blocks
Hmmm, I never thought of doing it that way, but you're right, it would probably be more efficient your way. Excellent idea! Thanks for your comment!
"Fish simulater 3000" 💀 Sorry I had to
If you put too many costumes if its 1 y pixel moved it kinda looks like it i guess
I'm Laughed Because Mom Says and Andy saying Mom
What's with your mik at 6:40?
I just listened to it again, and I guess here's a little audio glitch there where I spoke too loud and the mic was too sensitive. I never noticed until you pointed it out.
cos seems to do about the same as sin. makes a wave
Yes, the wave patterns are identical. The big difference is that with sin, the sine pattern starts in the middle of the curve, and with cos the pattern starts at the top. This can be useful sometimes!
@@atomecstudiosThanks for the tip! I could see why it probably wouldn’t be reasonably long enough to be put as a video.
Tan= sin/cos
I'm Assuming That Mr.T Is Mr.Tomec
Yeah, that's me! I run Atomec Studios with my wife, Miss Lynne.
do clones next
We talked about clones a little in our episode on projectiles in Scratch. kzhead.info/sun/pLytdJqigmqgoJs/bejne.html
NOT AGAIN, ANDY!!!
LOL. That boy never learns!
@@atomecstudios he has the iq of a robot that plays tic tac toe and does it inside AND outside the grid which is kinda dumb
0:17
1000th!
Congratulations, Jackson! We're very excited over here!!
I love to use scratch!
Your channel is gonna have 1k sub's we can do it
Таймер:🗿
Middle School kid learning trig 👇
Hello!
Hey! Hope you're enjoying our tutorials.
Im enjoying tutorials
Bleh realistic vid
Use time and not a variable
That works, but then you can't use your timer for anything else.
I was the 21th like
Yay!
i feel like i should stop giving random tips to the viewers bc they get deleted
I can assure you I haven't been deleting messages. If you're writing replies to other Scratchers, it's possible they deleted their original message, which would delete your reply. If there was anything spicy in the message, it might also have been reported, which I think would remove it. Polite advice to other Scratchers is always welcome here. Please let me know if anything else gets deleted in the future.
@@atomecstudios weird bc both times i commented tips. they disappeared
I WAS THE 7TH PERSON TO LIKE!!!!
Bet you'll feel good about that when we hit 100,000.
@@atomecstudiosOMG!!!!!! I DIDN'T KNOW YOU RESPONDED!!!!!!!!!!!
0:17 they will not
Pro tip: If Andy says anything, you can be pretty sure he's wrong.
@@atomecstudios yes he’s always wrong
remember me?
Sorry, we talk to a lot of people on here and all the usernames turn into a blur. Can you remind me?
@@atomecstudios remember when scrogg uses sine waves to attack earth?
Play car editor 2
125th comment here
Hey I am subscribed! (Pin please?)
𝚈𝚘𝚞 𝚔𝚗𝚘𝚠 𝚒𝚝'𝚜 𝚊 𝚐𝚘𝚘𝚍 𝚍𝚊𝚢 𝚠𝚑𝚎𝚗 𝚑𝚎 𝚞𝚙𝚕𝚘𝚊𝚍𝚜 😊
That's very sweet of you to say!
Yw 😃
The Font on the comment look diffrent at the very top of the replys
@@Limesheepcoolchannel Yes, why because it is the creator they get bold comments!
Ok