1 decade ago by PopaSmurf
I'm trying to move an entity around with the mouse but whenever I take it to the border of the map it doesn't stop me overlapping.
I'm using this to control the movement
That works fine, just the overlapping of a solid boundary that doesn't. I looked in to mapping the solid blocks myself but I don't understand it.
Thanks in advanced!
I'm using this to control the movement
this.pos.y = ig.input.mouse.y - this.size.y/2; this.pos.x = ig.input.mouse.x - this.size.x/2;
That works fine, just the overlapping of a solid boundary that doesn't. I looked in to mapping the solid blocks myself but I don't understand it.
Thanks in advanced!