S
Snayff
Guest
Evening all,
I am using an array for managing my velocity, like so:
At times I want to test if one or both elements is at 0, i.e. we are not moving. However, it never returns 0, even when not moving. I am sure I am missing something simple but the debug was no help as the values don't show as numbers and I am not sure what else to test for.
Any advice would be greatly appreciated!
-Snayff
I am using an array for managing my velocity, like so:
currVelocity = [0,0] // x,y
At times I want to test if one or both elements is at 0, i.e. we are not moving. However, it never returns 0, even when not moving. I am sure I am missing something simple but the debug was no help as the values don't show as numbers and I am not sure what else to test for.
Any advice would be greatly appreciated!
-Snayff
Last edited by a moderator: