Collision Dectection With a Picture and Polygons in LCD

ItsOnlyDallis's icon

I'm trying to build a game withing max, and I have a sprite drawn with drawpict that the player moves throughout an LCD screen. There are polygons in place all throughout the level, and the player shouldn't be able to move through them. I'm having trouble coming up with a way to do collision detection like this though. I don't know how to say, if an image hits any point on this line, don't let them move through it. I have the coordinates of the image and the coordinates of each line of each polygon, but I don't know how to put them together. If someone could point me on the right track, that would be amazing. Thank you!

Rob Ramirez's icon

perhaps you can make use of the jit.phys objects for collision detection.

grizzzly540's icon

You could try using several [if] statements