Geners
Member
Is there a way I can find the NEAREST point of collision between two objects or a point and an object. For the life of me I can't figure out how I would go about doing this, I thought up multiple solutions but all of them are really tedious and slow on processing.
Also is there a way I can get the total non-alpha pixels in a sprite with GML code? Would I need to use a shader to loop through each pixel?
I was thinking about maybe using a collision line to check in each direction and whichever collision was the shortest distance using that but this method isn't super accurate and I can imagine being very inefficient.
Also is there a way I can get the total non-alpha pixels in a sprite with GML code? Would I need to use a shader to loop through each pixel?
I was thinking about maybe using a collision line to check in each direction and whichever collision was the shortest distance using that but this method isn't super accurate and I can imagine being very inefficient.
Last edited: