Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Run/WalkTo - Changing angular velocity?  (Read 2749 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Run/WalkTo - Changing angular velocity?
« on: September 11, 2008, 05:55:19 PM »

Hello, I'm trying the RunTo WalkTo methods to make the actor move at different speeds. How can I change the actors angular velocity's rather than just the Velocity? By default, my actor turns too slowly for use during a run animation.

Here is an example of what I would like to do, but adding this.Angular_Velocity = 120; didn't seem to work.

Code: [Select]
method RunTo(x, y)
{
  this.WalkAnimName = "Run";
  this.Velocity = 60;
 /this.Angular_Velocity = 120;
  this.GoTo(x, y);
}
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Run/WalkTo - Changing angular velocity?
« Reply #1 on: September 11, 2008, 06:31:28 PM »

It's AngularVelocity, without the underscore ;)
Logged

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Run/WalkTo - Changing angular velocity?
« Reply #2 on: September 11, 2008, 06:33:02 PM »

Fantastic, I shall give this a try.

Thank You.
Logged
 

Page created in 0.029 seconds with 21 queries.