r543
Relic Team
Posts: 408
|
Post by r543 on Apr 15, 2012 11:00:29 GMT -5
i'm working on a roll action for sonic and sonic should spindash if the x and z speed are = and roll if they aren't. but what do i need to write in blitz 3d if i want the opposite of =
|
|
|
Post by Marble (LS5) on Apr 15, 2012 13:07:59 GMT -5
The "-" can be used for a negative number.
Example here: --- Pos = 6 NegOfPos = -(Pos) ---
NegOfPos will return -6
|
|
r543
Relic Team
Posts: 408
|
Post by r543 on Apr 16, 2012 3:46:53 GMT -5
The "-" can be used for a negative number. Example here: --- Pos = 6 NegOfPos = -(Pos) --- NegOfPos will return -6 but the problem is that the z and x speed can be negative and positive
|
|
|
Post by Marble (LS5) on Apr 16, 2012 8:12:36 GMT -5
If (Value >= 0) then Value = -(Value) Endif
If (Value < 0) Then Value = Abs(Value) Endif
Abs means Absolute Value
|
|