Sherlautten Posted June 23, 2015 Share Posted June 23, 2015 Hi, first to all I want to salute everyone, I'm new in ths community. Well, I open this topic because I'm having some troubles witht the Sprites which I'm using... My idea is to make a game of play between balls, I have loaded some sprites of 25x25 pixels, but the problem is that as you can see, when the corner of these two balls touch, they colide. In the image the sprites are coliding, but the balls don't, how can I "cut" these sprite's corners? Thanks to everyone, lets see how can I Fix it Link to comment Share on other sites More sharing options...
AzraelTycka Posted June 24, 2015 Share Posted June 24, 2015 Hello, you should mention which physics system are you using, if ARCADE, that you are describing desired behaviour because it uses bounding box as a body (rectangle). If you want to go with physics collision of circles with arcade physics you'll have to probably prepare you own collision function or look it up on the internet. Otherwise you can go with other physics system which support other shapes of bodies as well, check ti here and here P2 physics examples. Was it helpful? Sherlautten 1 Link to comment Share on other sites More sharing options...
Sherlautten Posted June 25, 2015 Author Share Posted June 25, 2015 I was using ARCADE physics, but I've found another example of P2 where they use the sprites as I wanted so the problem is fixed, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts