Is there anyone who knows how to handle collisions agains polygons?
Something that could be used like the drawpoly command, so that you could use that kind of maps. That is if I draw an advanced poly from an array, then I want to have a function which determines when a rect is inside this poly = collides with it. My idea was to have a map that is a png image and then use some sort of poly to draw the outlines of the walls/objects that are considered "not passable". I cannot use image collide for this as it is too slow.
Please if you know where I can find more information about this please feel free to post links!
Something that could be used like the drawpoly command, so that you could use that kind of maps. That is if I draw an advanced poly from an array, then I want to have a function which determines when a rect is inside this poly = collides with it. My idea was to have a map that is a png image and then use some sort of poly to draw the outlines of the walls/objects that are considered "not passable". I cannot use image collide for this as it is too slow.
Please if you know where I can find more information about this please feel free to post links!