Originally Posted by ChaosInc
Since bar is declared locally in your IF statement, it won't be carried outside the block. Try putting it inside and see if it works.
|
Then I will lose the value of it on every frame.. not to mention the overhead will be nuts.