Posted By
|
Message
|
Willy C
Registered 14/02/2004
Points 1524
|
22nd May, 2004 at 11:53:29 -
Im making a game now, and it has many effecs like blood squerting and emty bullets showering out of the gun. Only problem is that as we all know mmf and tgf has a active object limit. So my plans is to make a code that deletes random object that I have selected out (only deletes blood stains and empty bullets, not the player or enemies). I use MMF and have these questions:
1) What is the limit on objects in mmf? is it a limit on what the screen can display or a limit on what the level can display?
2) How do you make a code that counts object in the screen and deletes random objects
http://www.robocaptain.com
|
Knudde (Shab) Administrator
Crazy?
Registered 31/01/2003
Points 5125
|
22nd May, 2004 at 11:56:41 -
My method is to bind all actives into one group, then always set the counter to the number of objects in that group.
Craps, I'm an old man!
|
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
22nd May, 2004 at 15:04:15 -
the screen also has its own limit (as well as the level limit of 10000) but you'll find massive slowdowns before you reach it. to count the number of objects, use the experssion "set counter to NObjects", to select an object at random, there's an action in the "create object" menu.
www.thenatflap.co.uk
|
Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
22nd May, 2004 at 19:19:41 -
You can save a lot of actives by pasting in to background or using MMF 1.5's (latest service pack) Add Backdrop. E.g. if a bullet or blood splat flies through the air then stops, instead of leaving it there taking up memory you can paste/add backdrop with it, then destroy the object.
- Tigerworks
|
Mr Icekirby
Registered 18/12/2003
Points 846
|
22nd May, 2004 at 20:26:27 -
all good ideas, is there a limit on number of backdrops?
Mr Icekirby says so!
OBEY ME!
|
ChrisB Crazy?
Registered 16/08/2002
Points 5457
|
22nd May, 2004 at 20:37:40 -
No, but I believe that when you use the Paste Into Background/Add Backdrop actions, each pasted object counts as one object for one MMF loop. So you couldn't paste an object 500 times if your object limit was 300...
n/a
|
colej_uk
Registered 15/05/2002
Points 1627
|
23rd May, 2004 at 06:44:07 -
I use the 'delete un-important object when object count gets too high method' too. Easy to do by making a value=to total number of objects, then when it goes above say 250 (if your in GF) then pick a random object of maybe a particle effect and delete it.
-
|
|
|