#Trying to make a Sine wave?
1 messages · Page 1 of 1 (latest)
You should plug time into F
Or
time * pi * 2 if you want a full phase to last 1 second
The random 45 degree angle is because you have a seemingly arbitrary value in x. Ignore my rambling if that is indeed there for a reason.
X is there because I want it to move across the screen, as the guy in the tutorial did that.
I'll try the suggestion!
Hmmm, I have it like this now and it just goes in a straight line for 400 spaces (i dunno why 400), then yo-yo's back 400 spaces
The multiply is cause i was trying to make it move slower
I eventually figured it out with help from a friend, apparently I should have multiplied after Sin as well
And for whatever reason it was a problem when I had a value in X for that Transform, but is working correctly when i make the X movement its own transform :D
The feed into sin is your frequency. Multiply that for a faster rate.
Multiply after that for your amplitude.
In code itd be
sin(time * frequency) * amplitude
If that helps
So is it working the way you want it now? Why is does it have a move left transformer? May I ask what object is this visual coding for?
Yep! Works perfectly fine now.
It has the "move left" because I want it to move across the screen to the left.
Is it a drifting wave or it is a box, or hair or clothing I'm really really curious also your friend is smart it looks really good for visual coding it's clean too
It is an enemy that moves up and down in a wave, similar to Medusa Heads in Castlevania
Okay that's really cool. I wish you so much success for your game