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)".)
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.
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.
Okay, in my (semi-fruitless, so far, which is probably awfuly pathetic) attempt at trying to create something that swings back and forth on a fixed rope thing (...I believe the word I'm looking for is "pendulum"), I realized that I could quite easily get Scratch to give me the sine and cosine of an angle... I mean, I knew I could do this this way all along, but why I didn't use it for my other sine project is simply a mystery. =o
Comments
You need to be logged in to post comments
Add a Comment
dnt be so hard on yourslf!
(view all replies)Comment Reply
cool;)
(view all replies)Comment Reply
If you play my games and leave an honest comment, I will play yours and say "I love It"
(view all replies)Comment Reply
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
cool, useful too
(view all replies)Comment Reply
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
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
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