How do you know if two objects from the same list collide?
Basicly the title. Like how do I figure that out. Been trying for some time. Not a single of my methods worked :(
Basicly the title. Like how do I figure that out. Been trying for some time. Not a single of my methods worked :(
https://microstudio.dev/i/gilles/quickengine/
function >> Quick.spriteCollision
for i=0 to list.length-1 by 1
for j=i+1 to list.length-1 by 1
if collision( list[i], list[j] ) then
//
end
end
end
Thanks, did you take the code from Quick Engine or does this work just with Quick?
here is an example of how to use collisions with QuickEngine.
https://microstudio.io/i/Loginus/collisiondemoquick/
Examples of how to detect collisions are available search
https://microstudio.dev/i/Loginus/quadtree/
Loginus I know how to detect collision between objects. I just had trouble with detecting collisions between two objects from the same list. Thanks for the replay!