I am working on my first game, and I do know about collision detecting. I am curious if there is a method that returns how much space is being occupied by two sprites at the same time? Am sure there are multiple reasons to calculate this, but in my case one sprite can be touching at least 2 other sprites at once.
Is there a method that returns how much space is being occupied by two sprites at the same time?
Do you mean the intersect of 2 sprites ?
I don't think there is an existing API for that.
If so, did you try to compute the intersect of the 2 nodes frames ?
You can create a very simple method with this.
I don't think there is an existing API for that.
If so, did you try to compute the intersect of the 2 nodes frames ?
You can create a very simple method with this.