Zackorz Posted March 15, 2016 Share Posted March 15, 2016 I have images with transparent parts. Is it possible to use the "overlap" function and just trigger it when the visible parts touch each other? So it wont trigger when transparent parts lay over each other. The "P2" collsion detection doesnt work for my game, because im using "tweens" and the physics destroy my movement. Link to comment Share on other sites More sharing options...
Zackorz Posted March 16, 2016 Author Share Posted March 16, 2016 I attached now a smaller sprite as a child to the graphic, but it is not a perfect solution, because my graphic is rotating and the animations also. I always have to shift my sprite, or create an sprite with animations, so it fits with the animations on my object. Is there a better solution? A way to ignore transpareny in the "overlap" would be great. Link to comment Share on other sites More sharing options...
drhayes Posted March 16, 2016 Share Posted March 16, 2016 The phrase you're looking for is "pixel perfect collision". I don't know of a way to do that in Phaser by default, but maybe the phrase will help you Google around..? Link to comment Share on other sites More sharing options...
Recommended Posts