CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Benny150592

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    6,686

    Re: Movement Cos Wave

    I've got it working right now with this.




    public void verticalSwimBehaviour()
    {
    Random random = new Random(); // new random number generator
    ...
  2. Replies
    5
    Views
    1,837

    Re: Using a timer to go through a for loop.

    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...
  3. Replies
    4
    Views
    6,686

    Re: Movement Cos Wave

    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...
  4. Replies
    4
    Views
    6,686

    Movement Cos Wave

    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...
  5. Replies
    5
    Views
    1,837

    Re: Using a timer to go through a for loop.

    Elaborate? Wait for the timer?
  6. Replies
    5
    Views
    1,837

    Using a timer to go through a for loop.

    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...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured