Hay!
I have a velocity script on my game, but when i turn around it goes negative. Most cars don’t go in negative velocity:p, so how can i fix this to never say negative?
Hay!
I have a velocity script on my game, but when i turn around it goes negative. Most cars don’t go in negative velocity:p, so how can i fix this to never say negative?
Use the absolute value function (abs()) on the velocity value.
This is what i got
Velocity = own.getVelocity()
own.Vy = Velocity[1]
Where would i put it?
you would say:
Velocity = own.getVelocity()
own.Vy = abs(Velocity[1])