ohh solved! the 48 or 10 values wasnt the mistake , that's just the time that the player will walk, the problem is that i place "var counter = 48" on top of the code as the other vars and not before the "while(counter > 0" thx
That's what I've said... The var counter declaration can stay global as in your previous post, you just have to reset it before the while loop, i.e. counter = 48; without "var".
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual