Posted By
|
Message
|
Thiago Ladislau
Registered 05/01/2014 18:28:22
Points 6
|
5th January, 2014 at 05/01/2014 18:33:13 -
Hi everyone.
I have bee using MMF2 for quite some time, and I have been working on a level ediutor for months.
Everything is running fine, however, I found that I can't do big levels because of memory issues.
Each "block" is 32x32, and for the size I want for my levels, I end up having 2.000 of then, after that my frames start to drop.
What's a good solution for this?
I would like to have unlimited levels, and still have the freedom to interact with these "blocks", any idea?
n/a
|
Ricky loves Left For Dead 2
Registered 28/12/2006
Points 4075
|
5th January, 2014 at 05/01/2014 21:00:29 -
Make sure you max out your object limit in the frame properties to 20,000.
If you want unlimited sized levels, you're gonna have to load and unload parts of it on the fly, instead of right at the begging of the level.
-
|
Thiago Ladislau
Registered 05/01/2014 18:28:22
Points 6
|
6th January, 2014 at 06/01/2014 15:50:35 -
Thanks a lot Ricky.
I have already though about "creating on the fly" but I am afraid that I will have slowdows due to the objects researching values over the INI database.
I will try anyway, I have some neat ideas.
n/a
|
Rick Cameron
Registered 11/03/2012 08:45:25
Points 82
|
6th January, 2014 at 06/01/2014 23:52:11 -
This exact reason, and a hesitation to actually learn to do an array and things, is why I stick to single screen games.
/lazy
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
7th January, 2014 at 07/01/2014 01:48:25 -
If you're not already using it, hardware acceleration is a must - just set the graphics mode to "Direct3D 9", and it will instantly transform the performance of graphically intensive games (ie. those with a lot of objects).
Also, paste your tiles into the background wherever you can get away with it.
Forget about using INI - arrays are far better suited to storing maps.
n/a
|
SolarB
Registered 26/12/2011
Points 564
|
12th January, 2014 at 12/01/2014 17:29:21 -
Netninja/AssaultAndy has a perfect example of this using 32x32 tiles: http://community.clickteam.com/threads/60905-Free-Roaming-Tile-Engine-with-Box2D-Example
My Open Source Examples: http://bit.ly/YyUFUh
|
Thiago Ladislau
Registered 05/01/2014 18:28:22
Points 6
|
20th January, 2014 at 20/01/2014 16:17:21 -
Thanks a lot everyone!
n/a
|
|
|