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
[optional!!!]
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
- Game Maker Community
- → Viewing Profile: Posts: Monkster
Monkster
Member Since 11 Oct 2003Offline Last Active Mar 25 2010 04:40 PM
Community Stats
- Group New Member
- Active Posts 3
- Profile Views 163
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
none
Posts I've Made
In Topic: Destructible Terrain
17 July 2004 - 06:17 PM
In Topic: I Believe That Gm Has A Flaw
28 January 2004 - 02:24 AM
Mark lives in teh Netherlands...so sending money to the UK might be a problem if ur trying to register... :wistleI live in canada and am not old enough to have a credit card or any such thing so sending money to the UK would be rather complicated.
In Topic: Space Time Strategy - Explore, Expand, Extinguish!
02 January 2004 - 12:21 AM
u ran outta bandwith...get a new host!
- Game Maker Community
- → Viewing Profile: Posts: Monkster
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content