Please help me I am not good with math and would love people to help me out because this is stopping me from making cooler apps so I need some help.

# Help me with Hopscotch math (Sine and cosine, Variables, etc)

**sophia71205**#5

Hm, I guess youâ€™ll need help with variables because Iâ€™m not great at explaining sin and cos, and variables are more important to me. Variables are like a thing that you can change to any number depending on what you have coded for that variable. You can set a text to say he number of that variable, you can multiply and divide and add and subtract variables, and you can set parts of HSBs and RGBs to a variable. There are two kinds of variables: object variables and device (iPad) variables. I prefer iPad variables because you can use them easily in any object, but if you have a whole bunch of clones that all need their own copy of the variable, use an object variable and set he object to â€śSelf.â€ť Iâ€™ll give you one example of each type of variable.

iPad variable: It is a good one to use for a score counter. Say if you tap a star, you get a point, but you lose 10 points if you tap a bomb. Your code would look like this in a blank text object

When is tapped

â€˘increase (points) by 1

When is tapped

â€˘increase ( points) by -10

When 7=7

â€˘set text to ( points)

Self variable: Like I said, this works best with variables. Your code would look like this in a fading spiral draw (at least Iâ€™m pretty sure thatâ€™s where the set position block goesâ€¦), so it would be in an emojiâ€™s code:

When is pressed

â€˘create a clone

When object is cloned

â€˘set position x (last touch x) y (last touch y)

â€˘set ((self) fade) to 0

â€˘repeat 50 times

-increase ((self) fade) by 2

-set invisibility to ((self) fade)

Sine, cosine, and tangent are all trigonometric ratios created by the sides and angles of a right triangle. Thankfully, you donâ€™t have to be taking trigonometry to understand them. In Hopscotch, you can use sine and cosine together in a set position block to quickly create curves (including bold text).

Well, @sophia71205 did a really nice tutorial on variables. Really the only thing I can say about it is that there are different types. The ones that I have learnt are Independent and Dependent Variables. Idk Iâ€™d this would help you in coding, but it may help you understand what type of variable you need to use while coding in HS

If you need help, my sine and cosine tutorial might help. Tap on my username, scroll to the bottom, and itâ€™s the first feature.

Hereâ€™s a massive post I made on another topic. If you any questions whatsoever about anything, feel free to ask me or tag me!

**Awesome_E**#17

Visual Rep of how sin and cos are used to draw circles

## Trig Ratios (sin, cos, tan)

## Unit Circle

(x,y) = (cosine, sine)

## Special Right Triangles

These lengths are what make up the unit circle

These in the unit circle:

**RobotPro**#19

Why would you be dividing opposite/hypotenuse and so on? What are you getting from doing that, thatâ€™s important?

(excuse my lack of understanding)