How to make a Sine wave?


By the way, I’ll edit this when I have a new problem instead of multiple topics.

How do I use this

I made a “Sine Wave Generator” a while ago, although I don’t think that it might work as you want to. If you still want to check it out, here is a link:

And if you want to give credit, do it, but it’s fine if you don’t (at least for this project).


I want a regular sine wave.


Okay. I’d suggest talking to someone who knows a lot about sine and cosine, including @ThinBuffalo and @KVJ.




One example that I can think of

When game starts
    Set position to x(0) y(height) #not actually needed necessarily
    Repeat (1024 or whatever)
       Set position to x([object's x position value] + 1) y(sin(object's x position))


thank im gonna plug in meh ipad and chekk


that’s my name alright


It workeD


Good :slight_smile:


Should I link it?


Of course it did. You were using code from the CoSine master.


If you want ¯\⌒(ツ)⌒/¯


Omg where’s @dmf we haven’t spoken in agesssss


I think he left :frowning: :cry::pensive::pensive:




THE COSINE MASTER?! DID I JUST DO COSINE WAVE?! Haha just kidding, it mentioned sine in the code LOL. I just mess with Sin/Cos and values. One thing I noticeably learned was to tilt one of my backgrounds (RGB and HSB I think) At the Brightness/Blue I had to use its y position or x position.