Sins and Cos Help (I need help)


#1

This is where I ask questions for using sins and cos to make round things. The first person to answer my question will get to be in the credits of the game!


#2

First it's to make a happy smile, for a face generator!
Put the code underneath this with replying like this

Smile Sins and cos code:

(Code)


#3

Ohh I haven't done this in a while
Does it need to be sin and cos?


#4

Or any way to make a smile (besides using an arch or any shapes)


#5

I wish I could help you, but I can't entirely remember sine and cosine! I made a topic about it, I'll find it. :slight_smile:

Here!

I know, it's not super helpful, but it somewhat explains! :slight_smile:


#6

But I perfur sins and cos


#7

Sry @LazyLizard but that's not what I need


#8

Okay!

That's fine! It kinda explains sine/cosine in the link I put up but it takes a while to understand and I haven't been able to code in a while.

@KVJ may know more than me even though I helped him learn it lol


#9

Ok then! @KVJ I need your help with sine and cosines


#10

Oh, I can help! What do you want your smiley face to look like?


#11

I just need the code for the smile


#12

Oops..... check my latest project it will show u


#13

My username is BananaPEEL​:banana:


#14

I'm here now!

I used a smile in my Bernard project.

Code:

Repeat times 180

Set POS to X( 100 x cos(Rotation) + 500 ) Y( 40 x sin(Rotation) + 400 )
Turn 1

End

You can play around with the numbers to suit you :slight_smile:


#15

Ok thanks!!!!!!!!!!!!!


#16

@KVJ thx for the tip but I need it more round


#17

You could check out the code in my project Blue Ball - Da Bomb v1.0
It draws the character in the lower right on the game over screen. If that's the kind of happy face you're after, I'm ThinBuffaloSr in Hopscotch.
The code to draw it is broken in Abilities for most of the individual features so hopefully it's not too hard to follow.


#18

Sry I don't need a mouth like that. But I like the game @thinbuffalo
I need one like under my projects (username is bananapeel​:banana:) it's say. To intelection. I need a smile like that


#19

If you mean more round you can change the "40" to something bigger for Y :wink:


#20

BTW, sorry, it's out of topic, what is flagging? I know how to bookmark but I never used flagging!