A Sine and Cosine Tutorial

hopscotch
help
sin_and_cos
howtos
helpwithcode

#1

I know many of you are like :scream: when you see the Sin and Cos blocks. But using them is not that complicated! Here’s a tutorial for anyone struggling with Sine and Cosine:


1. Pull out a Blank Text Object


2. Pull out an Emoji
Next you will need to pull out an emoji or some other text object. Today I’m going to use the basketball emoji.


3. Add a Set Pos Block
Create a new rule for the basketball emoji and pull out a Set Position block.


4. Place the Cos Block
Now Place the Cos block inside the X slot on the Set Position block.


5. The Three Slots
I will now explain what the three slots on the sin/cos blocks mean and how to use them.
For the first slot you will want to type in a number. This number will determine how far your object is from the object it is rotating around.
In the second slot you will want to place a value. This will determine the speed of your object.
The last slot will determine what X and Y positions your object will rotate around. If you are making your object rotate around another object, place the values Text X Position and Text Y Position in this slot.


We will now do the same with the Sine block.


Next we need to place this block in a Repeat Forever block.


The Value:
We now need to make another rule on the basketball where it says, when the play button is tapped, Repeat Forever.


Inside this block we will place an Increase Value block with our value Length inside it.
Now we just need to change the amount you increase the value by in order to change the speed of the basketball. The higher the number, the faster the basketball rotates. 5 will be the default speed.


YAY! You have now learned to properly use Sine and Cosine in Hopscotch! Go mess around with the functions and clones and see what you can create!
THIS LINK is to the final product!


Was this tutorial helpful?

  • Yes
  • No

0 voters


Thank you guys for the Feedback! Ask questions below!


How does sine and cosine even work?
Welcome to Tutorial Land. Omg
I was wondering how to use sin/co
Sine & cosine help
Just need some help! :3
Talk to a Hopscotcher! (take 2)
Can someone explain Sin and Cos on hopscotch to me?
Help with sine and cosine?
Can somebody explain sine and cosine?
The Wishing Topic
Could someone explain sine and cosine?
Could someone explain sine and cosine?
Does anyone know the actual formula for Sine and Cosine
How to use sine/cosine
How do Sins and Cos work?
How Do You Use Sine And Consine
What are Sine and Cosine
Bluedogmc's General topic! Old!
Bluedogmc's General topic! Old!
What is sin and cos
Request Your Tutorial to be in the New Wiki!
#2

OMG That took so long to do.


#3

Great tutorial! I'll look forward to using this! I have like no experience with it XD


#4

Thanks! I hope you guys use this to the best of your abilities!


#5

Of course I ran outta likes!


#6

Ikr XD


#7

You guys can also fool around with the code in the example project to see what you can do!


#8

One problem: the auto-correct kept changing "your" to "you're". Grammar sometimes bugs me. But great tutorial!


#9

That troll who voted no -.-


#10

Am I the only one who has been putting sine in the X slot and Cosine in the Y slot?
Yep XD


#11

@AmazingAlphaAquaWolf Probs not :wink: I did that when I first started. I think they should make the Sine block come first so nobody makes that mistake :wink:


#12

Omg that really helped!! I'm pretty bad at sine and cosine


#13

Thanks @PowderBluePuppy!


#14

Link to the sin and cos linky link linkthing I did based on your tutorial:


#15

@Bubbles4Ever929 Nice job! You did a great job testing the first slot to make it rotate in a different shape! :wink::thumbsup:


#16

Maxed out on likes.... It's supposed to be the moon rotating around earth


#17

I know! :earth_americas::new_moon: Good Job!


#18

Thanks @UptownStudios!! Great tutorial :smiley:


#19

Wow this is really helpful! Srsly, for the first time, my things are working :joy:


#20

Here's what I was experimenting