that idea has been mentioned quite a few times already...but its out of the question as eventually u'll have thousands and thousands of instances which will slow down the game.
i have a good one (pardons if its been mentioned):
you make a ground out of...say...4 blocks of 128x128 land.
then when the land is shot, it turns the 128x128 block of land into 4 64x64 blocks.
those turn into 4 32x32 blocks
those turn into 4 16x16 blocks
those turn into 4 8x8 blocks
those turn into 4 4x4 blocks
those turn into 4 2x2 blocks
those turn into 4 1x1 blocks
this way you shoot the land once, and the big swap from 128x128 to several 1x1 blocks is instantaneous.
i do NOT take credit for this idea, it was found by me on...i think it was Carl G.'s site.
only that example does not use 1x1 blocks.
but i am going to use it in certain spots in my Matrix game, to make shiftable ground.
Pros: It works, and works well; instantaneous collision checking
Cons: If you dont use 1x1's, it can look blocky; needs precise sizes of land (although you can just use multiple 32x32's if a 64x64 or 128x128 doesnt fit, etc.; a LOT of objects on screen at once
happy to contribute to the experts forum board
MonksterMember Since 11 Oct 2003
Offline Last Active Mar 25 2010 04:40 PM
- Group New Member
- Active Posts 3
- Profile Views 163
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown