1 decade ago by kurisukun
Hi, I'm not sure if this is specific to Impact++ which I am using on top of ImpactJS. However, I don't know how to modify the EntityPlayer movement speed when walking.
I tried doing the following:
This made the player walk slower, but unable to jump anymore. Also, when changing directions, the inertia of the player makes the player keep on moving in the previous direction.
Any help would be appreciated. Thank you!
I tried doing the following:
.defines(function () { "use strict"; var _c = ig.CONFIG; var _ut = ig.utils; ig.EntityPlayer = ig.global.EntityPlayer = ig.Player.extend({ size: {x: 8, y:14}, offset: {x: 4, y: 2}, health: 10, speed: {x:50, y:50} ..
This made the player walk slower, but unable to jump anymore. Also, when changing directions, the inertia of the player makes the player keep on moving in the previous direction.
Any help would be appreciated. Thank you!