I used millisecs as a hint - no a solution.
- its jerky cuz the steps are big..it wont take long for
90 millisecs() to elapse ;)
The solution is to rewrite your system - make it time based,
and update a step var in small increments every so many
millisecs...how you implment such a system is up to you,
but i imagine there are plenty of resources around that
will help you create a "per sec" type system.
anyway - glad you got it working ;)
- its jerky cuz the steps are big..it wont take long for
90 millisecs() to elapse ;)
The solution is to rewrite your system - make it time based,
and update a step var in small increments every so many
millisecs...how you implment such a system is up to you,
but i imagine there are plenty of resources around that
will help you create a "per sec" type system.
anyway - glad you got it working ;)