angle and diretional_velocity

Non-platform specific questions.

angle and diretional_velocity

Postby jazz_e_bob » Mon Mar 01, 2004 10:33 pm

Setting diretional_velocity to 0 also sets angle back to 0.

This is bad. I want the system to remember the angle even if the actor isn't moving!
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Tue Mar 02, 2004 1:31 am

To remeber an angle, you must use an auxiliary var.

The angle var represents the real angle of move, so, if your actor is stopped, the angle become undefined
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Tue Mar 02, 2004 2:00 am

Will do. Thanks mate. 8)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest