Page 1 of 1

Coding a bullet to follow a sine wave.

PostPosted: Fri Dec 06, 2013 2:39 pm
by BloodRedDragon
I'm trying to get a bullet to follow a sine wave. Currently it follows the shape of a ball bouncing. I've tried using the sin object but I'm terrible at using it and don't know how to put it into a code. I can get sin to do a curve, but that's it.
Draw actor code
Code: Select all
angle = angle + 5;
directional_velocity=5;
y=y+10;