This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
handleMovementTrace: function( res ) {
if( res.tile.y == "2" && this.vel.y < 0 || this.pos.y > res.pos.y) {
res.collision.y = false;
res.pos.y = this.pos.y + this.vel.y * ig.system.tick;
}
if( res.tile.x == "2") {
res.collision.x = false;
res.pos.x = this.pos.x + this.vel.x * ig.system.tick;
}
this.parent(res);
}