I have 1000 objects in group "Lines"
I need to find out what line (object) do I actually intersecting.
so I have
Code: Select all
if intersect(btn "player", group "Lines", "opaque pixels") then
answer "Collision"
end if
Code: Select all
if intersect(btn "player", group "Lines", "opaque pixels") then
answer "Collision with line XYZ in group Lines"
end if
Solution would be to check intersect for every single Line but there is too many lines.