Coding a bullet to follow a sine wave.

Non-platform specific questions.

Coding a bullet to follow a sine wave.

Postby BloodRedDragon » Fri Dec 06, 2013 2:39 pm

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;
Current projects:
Techno-Tank Arena: on hold
Techno-Tank SuperPortal (working title): 0.1%
Bowels of Galaxies: 35% (was a bit too optimistic)
User avatar
BloodRedDragon
 
Posts: 123
Joined: Tue Jan 29, 2008 10:07 pm
Location: The Underworld
Score: 5 Give a positive score

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest