View Single Post
Old 02 June 2016, 18:32   #9
Brick Nash
Prototron
 
Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 421
Quote:
Originally Posted by jimwon2016 View Post
In answer to your question about using multiple lines for an If statement, I suggest you do this instead:

If CONDITION=True
Do this
Do that
Do another thing
Now this
End If

Having more than one instruction on a single line executes slower than having a list of instructions.

Regarding Hrev, I would probably just have a variable to keep track of the flipped status of the object and then check the variable....

If JUp(1)=True
If ISBOBFLIPPED=True
Bob 1,SX,SY,HRev(GUY)
Else
Bob 1,SX,SY,GUY
End If
End If
Wonderful thank you! I'm much more at home using If statements. Got a nice little joystick routine up and running now and great idea on the custom variable. Makes things so flexible.
Brick Nash is offline  
 
Page generated in 0.05922 seconds with 10 queries