i am making a 2d platformer that involves jumping but when i put my code in it gives me this error: Unknown identifier moveDirection. but i know it should a known identifier because it's highlighted orange!
var jumpSpeed = 5.0;
moveDirection.y = jumpSpeed;
p.s. please help!
It's unknown because you haven't defined it anywhere. You need to define variables before you can use them.
answered Aug 19 '10 at 07:20 PM
answered Dec 10 '10 at 09:05 PM