View Single Post
Old 03-13-07, 01:34 AM   #6
Chad
ACE
 
Join Date: Sep 2002
Location: Kansas City
Posts: 1,274
Downloads: 60
Uploads: 0
Default

Couple of more things to do on my list before I show the vid, and one being getting my rudder in full working order!

Here is the code for my rudder, could you help me by showing me some example code to increase my rudder's turn by 5 degrees each time with a max of 40 degrees? You might have to rework some of this, but I just can't get it to work right with the way I'm doing it.

Code:

;RUDDER INFORMATION!!!!!
If KeyHit(26) Then TurnLeftFlag=1-TurnLeftFlag:TurnRightFlag=0
If KeyHit(27) Then TurnRightFlag=1-TurnRightFlag:TurnLeftFlag=0
If KeyHit(40) Then TurnLeftFlag=0:TurnRightFlag=0
If TurnLeftFlag<>0 Then 
TurnEntity conn,0,.03,0
EndIf
If TurnRightFlag<>0 Then 
TurnEntity conn,0,-.03,0
EndIf 

If I get this out of the way then there's about 5-10 small things left before Video.

Thanks,
Chad
__________________
Chad is offline   Reply With Quote