Some question about Chipmunk
Posted: Tue Apr 08, 2008 1:30 pm
Hi guys,
Im new at game development and i started with gosu, im planing to make a 2d side scroller, the map and some monsters gonna be very rich so i cant do the collisions with just retangles, im planning to use the chipmunk to make this collision. I didint used the chipmunk yet, im need know one thing before start to study
chipmunk support polygons, right? my idea is to use photoshop to make all the images and the collision mask, then later RMagick to get the X,Y of the collision mask and create a file with a array to make the polygon to use later when the game run (this is all pre-calculated)
but, now is the problem, a monster animation its about 10 images, and some have diferente sizes, everytime i switch the image can i update the chipmunk polygon for that image to make the collision?
Thanks!
Im new at game development and i started with gosu, im planing to make a 2d side scroller, the map and some monsters gonna be very rich so i cant do the collisions with just retangles, im planning to use the chipmunk to make this collision. I didint used the chipmunk yet, im need know one thing before start to study
chipmunk support polygons, right? my idea is to use photoshop to make all the images and the collision mask, then later RMagick to get the X,Y of the collision mask and create a file with a array to make the polygon to use later when the game run (this is all pre-calculated)
but, now is the problem, a monster animation its about 10 images, and some have diferente sizes, everytime i switch the image can i update the chipmunk polygon for that image to make the collision?
Thanks!