Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by SlinkyDinky

I'm not interested in accelerating my character over time, I wan't him to run at maximum speed, instantly. Similarly, I'd like the player to stop instantly, not decelarate. I've fiddled with not calling this.parent() in my overridden update function, but so far, without luck.

Any suggestions?

1 decade ago by dominic

Setting .vel.x/y directly instead of .accel.x/y will set the speed immediately. Take care to set .maxVel.x/y to a high enough value.

1 decade ago by SlinkyDinky

Thanks, man. That did the trick. Awesome.
Page 1 of 1
« first « previous next › last »