November 23rd, 2011, 08:11 PM
I've got it working right now with this.
public void verticalSwimBehaviour()
{
Random random = new Random(); // new random number generator
...
November 22nd, 2011, 07:42 AM
So what I want to do is to decrease the speed of an object by 1 everytime the timer elapses, so everytime it goes through a different element of the array it changes the speed value to that.
Thus...
November 22nd, 2011, 06:49 AM
So in your first bit of code, what value is Amplitude?
And say my object moves at a speed of 2, so 2 up the Y axis until it hits the top which is at 250.
So STEPS would be 125?
Thanks for...
November 21st, 2011, 08:23 AM
Hi,
Basically, what I'm trying to do is get an object to move vertically up the screen in a nice cos wave motion, swaying back and forth.
At the moment I have it just going straight up and it...
November 15th, 2011, 05:21 AM
Elaborate? Wait for the timer?
November 15th, 2011, 05:02 AM
Hi there,
I'm trying to figure out how I would get a for loop to run after a timer has elapsed. So when the timer elapses it circles through the for loop once, then the timer starts again and...