VERY easy way to get sin and cos in Scratch

user_icon BATzerk shared it 9 months ago
240 views, 3 people love it, 1 tagger, 35 downloads, in 2 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

poopoo poopoo 1 month, 2 weeks ago

dnt be so hard on yourslf!

(view all replies)
Comment Reply

BiggerT BiggerT 1 month, 2 weeks ago

cool;)

(view all replies)
Comment Reply

SquirrelMan SquirrelMan 1 month, 2 weeks ago

If you play my games and leave an honest comment, I will play yours and say "I love It"

(view all replies)
Comment Reply

redsooty9 redsooty9 2 months ago

Yes this is AN easy way to do this, but... you can just do itthe REALLY EASY way y'know.

(view all replies)
Comment Reply

Oldschooler2 Oldschooler2 7 months, 1 week ago

cool, useful too

(view all replies)
Comment Reply

BATzerk BATzerk 8 months, 2 weeks ago

But I believe your issue probably has something to do with the fact that you have an "if y =" thing going on in there. KEEP IN MIND that y probably changes at NON-integer intervals. That is, y will pass right by 14 (say, go from 13.2 to 15.6 or something, idk). Try substituting the "=" with a "<" or ">" to ensure that doesn't happen. (Maybe make it, "repeat until (y > 13.9)".)

(view all replies)
Comment Reply

BATzerk BATzerk 8 months, 2 weeks ago

Well, Lucario, it seems as if you're trying to emulate a sine or cosine graph. Keep in mind that what you are describing is a set of parabolas, not sin/cos... a sin curve and a parabola have similar shapes, but they're definitely not the same! Send me your project so I can take a look at it-- email me at taylor44@tcnj.edu.

(view all replies)
Comment Reply

Lucario621 Lucario621 8 months, 2 weeks ago

Well, I am trying to do the same thing but not as fat waves and repeated times but I am using gravity in a script like When flag clicked pen down, set y to 14, set gravity to -5 forever change x by 5 and forever change y by gravity. Then there is another script saying forever,repeat until y = 15, change gravity by .1, repeat until y = 14, change gravity by -.1. What is the problem. It starts goin down the right way then up but does not go back down and repeat. You may know why I ask this, because I uploaded the new beta version and I caonnot download any programs.

(view all replies)
Comment Reply