Speed in PAlib AngleSinCos example

Discussion in 'NDS - Emulation and Homebrew' started by eglomer, May 13, 2009.

May 13, 2009
  1. eglomer
    OP

    Newcomer eglomer Member

    Joined:
    Sep 14, 2008
    Messages:
    12
    Country:
    Spain
    Hi!

    I'm doing some tests based in a PAlib example (PAlibExamples\Math\AngleSinCos) and I'd like to modify the sprite's speed, but I don't know how to do.

    I tried to declare s32 speed = 2
     
  2. eglomer
    OP

    Newcomer eglomer Member

    Joined:
    Sep 14, 2008
    Messages:
    12
    Country:
    Spain
    Well... I had to multiply Sin(angle)*speed and Cos(angle)*speed ^^U
     

Share This Page