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 TrexKikBut

I want to check if the entity has collision tiles on either side of it. How can I do this?

1 decade ago by StuartTresadern

try :


ig.game.collisionMap.getTile(this.pos.x-1,this.pos.y)
ig.game.collisionMap.getTile(this.pos.x+this.size.x+1,this.pos.y)


Check if they are not 0 (no tile).

1 decade ago by TrexKikBut

Thanks!
Page 1 of 1
« first « previous next › last »