1 decade ago
by PHP6
I have a collision map with a 16x16 gap in a wall.
My entity is 16x16 in size. Why does my entity not fit through this gap?
1 decade ago
by gxxaxx
I had this problem myself recently. Or, at least a problem that sounds similar.
To fix this I had to convert my pos.x and pos.y to integer values.
This way I had a chance of matching the entity up with the gap :)
1 decade ago
by Jerczu
Check the pointofimpactjs.com I found the fix there to use in my pacman game
http://nervman.cdgn.co.uk
1 decade ago
by PHP6
thanks for the replies, checking this out now!
@Jerczu THANK YOU for that site!!!
1 decade ago
by PHP6
@gxxaxx I'm sorry, after looking around I'm still not too sure how to go about doing this.
@Jerczu I cannot find much related on pointofimpactjs. I am also doing the same thing as you with A* (but having the issue with both A* and my player entity)
1 decade ago
by Rafael
@Jerczu any chance you can post your fix? i tried using the one on pointofimpactjs.com but it doesnt really work well. Not sure what i'm doing wrong.
thanks
Page 1 of 1
« first
« previous
next ›
last »