Even though this is similar to Valgo’s one ( link will be put down below ). I wanted to make one. People might wonder what some of these blocks mean or are so I’m here to help you. You should know addition, subtraction, multiplication and division.
Here are some blocks that people might struggle with:
Random means that you pick a number as your minimum and maximum. For an example:
Power is when you times a number by itself the amount of times the number says. Like, 9 ^ 3 is 9 x 9 x 9 = 729.
Depending on the number you have to power by, you go on until you get the answer.
Here’s another example:
This means 2 x 2 x 2 = 8
COSINE, SINE AND TANGENT
Sine,Cosine and Tangent (often shortened to sin ,cos and tan ) are each a ratio of sides of a right angled triangle:
For a given angle θ each ratio stays the same
no matter how big or small the triangle is
To calculate them:
Divide the length of one side by another side
- Put a when game starts go to center (or wherever you want your circle to be).
- Then and a when game starts repeat forever
- Inside the repeat forever add a set position block
- Inside the X part add Cosine labeled as COS and the following will appear.
- Add the Radius of Circle ( NOT A VARIABLE ) a random Variable and the x position of the circle ( NOT A VARIABLE )
- In the Y section do the same thing as the X but with SINE
- Then add a when game starts repeat forever increase VARIABLE BY 1
Play game and watch the sprite go in a circle!!,
Round means when you have a number and round to the nearest whole number. For an example, 2.3 would round down to 2. 2 is a whole number, not a decimal or fraction.
I use this to help me.
So, when you round. What if it’s 5? Well, it could round up and down but I’m not sure why but you have to round up.
Inverse Sine, Cosine & Tangent
I myself don’t understand this so I’ve linked a website. Sorry if you wanted me to explain but I don’t know how to explain, even though I’m 10.
This looks hard but is easy. Absolute Value is taking of the - of a negative number. If you don’t understand that explanation, it means only how far a number is from zero:
“6” is 6 away from zero,
and “−6” is also 6 away from zero.
So the absolute value of 6 is 6 ,
and the absolute value of −6 is also 6
- The absolute value of −9 is 9
- The absolute value of 3 is 3
- The absolute value of 0 is 0
- The absolute value of −156 is 156
So in practice “absolute value” means to remove any negative sign in front of a number, and to think of all numbers as positive (or zero).
Absolute Value Symbol
To show that we want the absolute value of something, we put “|” marks either side (they are called “bars” and are found on the right side of a keyboard), like these examples:
I−5I = 5
I7I = 7
Sometimes absolute value is also written as “abs()”, so abs(−1) = 1 is the same as |−1| = 1
For an example:
Absolute Value Of -8 is 8
Absolute Value Of 8 would still be 8
This is a work in progress. I’ll edit it and add more soon
Before I forget, here’s the link!
Credit To TheDeliciousOrange For Sine and Cosine