Forums > MaxMSP

Collision Dectection With a Picture and Polygons in LCD

April 6, 2013 | 9:58 pm

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!

April 8, 2013 | 7:07 pm

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

April 14, 2013 | 10:03 am

You could try using several [if] statements

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP