beuleal Posted March 7, 2015 Share Posted March 7, 2015 Hey, I'm not happy with my collion. Example: i have a "sun" sprite. it is basically a circle with alpha parts for the blur. When i use collide/overlap, phaser consider the blur, but i dont want it! Someone can ask: Why didnt u create a circle and use it to collide? Yeah, it works! but i have the moon with the same properties and isnt a circle! Help me guys! Link to comment Share on other sites More sharing options...
valueerror Posted March 8, 2015 Share Posted March 8, 2015 sorry but if your sun is a circle.. use a cirle as hitbox.. you need to use p2 physics for that of course .. then you could also use polygons to define half moon shapes precisely..if you expect phaser to automatically adjust the hitbox you will always get a rectangle in the size of your image Link to comment Share on other sites More sharing options...
beuleal Posted March 8, 2015 Author Share Posted March 8, 2015 WOW! U are the man! I think u are correct bro! I gonna do it! Link to comment Share on other sites More sharing options...
GrindheadGames Posted March 10, 2015 Share Posted March 10, 2015 if you are using arcade physics you can also set a custom body sprite size. This will adjust the collision area detected by phaser, and you can provide and offset to take into account the blur you have enabled. Link to comment Share on other sites More sharing options...
Recommended Posts