Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 537
Posted: 01:08am 06 Nov 2023
Copy link to clipboard
Print this post
Hello everyone
Is there an out-of-box way to make the sprite interrupt command only call the callback function when the non-transparent pixels of two sprites collide?
In my tests, the callback is called if any parts of two sprites collide, even if the pixels are transparent.
Thank you
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10637
Posted: 08:28am 06 Nov 2023
Copy link to clipboard
Print this post
Collision is detected on the sprite boundary. Anything else would be far to processor intensive. All you can do is limit the size of the sprites to the smallest rectangle possible that has non-transparent pixels on each edge