1 decade ago by PabloAM
On the demo, the player is still "Jumping" when the elevator is going at bottom.
Any fix for that?
Thanks
Any fix for that?
Thanks
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
if (other.pos.y < this.pos.y) { other.standing = true; other.vel.y = ig.game.gravity / 4; }
check()
function of the Platform entity? If so, the code doesn't seem to be making the player stick.type: ig.Entity.TYPE.B, checkAgainst: ig.Entity.TYPE.A, collides: ig.Entity.COLLIDES.FIXED, check: function(other) { if (other.pos.y < this.pos.y) { other.standing = true; other.vel.y = ig.game.gravity / 4; } }
type: ig.Entity.TYPE.B, checkAgainst: ig.Entity.TYPE.A, collides: ig.Entity.COLLIDES.FIXED, collideWith: function(other, axis) { if (other.pos.y < this.pos.y) { other.standing = true; other.vel.y = ig.game.gravity / 8; } }