I’m making a platformer and I need to generate the collision map from a black and white image. I tried checking each black pixel and adding an object but that made it run way too slow. What would be a good way to set up the objects so he can walk on the black parts of the image? Thanks in advance.
http://www.upload3r.com/serve/200609/1245526628.png
That would be the collision mask and somehow I would take that and make objects from the black areas and then draw the background over it.