Collision Dectection With a Picture and Polygons in LCD

Apr 6, 2013 at 9:58pm

Collision Dectection With a Picture and Polygons in LCD

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!

#67543
Apr 8, 2013 at 7:07pm

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

#243033
Apr 14, 2013 at 10:03am

You could try using several [if] statements

#243034

You must be logged in to reply to this topic.