The Daily Click ::. Forums ::. Klik Coding Help ::. Tile in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Kokocipher



Registered
  03/06/2008
Points
  439
9th August, 2010 at 18:29:45 -

I'm currently in the process of making a top down driving game and planning to use tiles for making the roads. However, if I make the tiles into individual objects and drag them one by one on to the frame, it will eventually exceed 500 objects, and this leads to memory overload and the game freezes up. I was wondering if MMF2 has a way of handling tile objects so that it will not hog up memory.

Thanks in advance.

 
http://blog.kokoarcade.com

alessandroLino

I create vaporware

Registered
  11/03/2009
Points
  172
9th August, 2010 at 18:45:29 -

You could raise the object limit on the frame, and use the event to paste the actives into background. Still, IIRC the number of objects pasted into background is affected by the object limit, if you have tons of tiles some might disappear.

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1960

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
9th August, 2010 at 19:03:11 -

"Add to backdrop" is probably the way to go.
Alternatively, you could use the "Text Blitter" extension, or the new "Surface" extension.

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
9th August, 2010 at 19:29:49 -

How would the text blitter help?


 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1960

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
9th August, 2010 at 20:50:36 -

The Text Blitter isn't just for text - instead of using letters, you could just as easily use background tiles.
It's just another way of doing the same thing, and probably not any better or worse than other methods.

Actually, using HWA and increasing the object limit should probably fix the problem. I seriously doubt memory usage has anything to do with it. If you look at something like HitmanN's "Tank Game", it uses hundreds of active objects as background tiles (not pasted into the background) and works fine with HWA. I believe the same may be true of the platformer that Pixelthief has been working on.

 
n/a

Kokocipher



Registered
  03/06/2008
Points
  439
10th August, 2010 at 03:06:27 -

Text Blitter is not supported with Flash Exporter. I've read some articles on tiles and most of them requires a lot of work in terms of building your own map editor and level loader. Some suggested to just create a big background image with the tile set.

 
http://blog.kokoarcade.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
10th August, 2010 at 03:23:00 -

You know, by reading your question I'm not sure if you aren't just using active objects instead of backdrop objects. For which there is no limit and are more efficient then actives.
you say you're using tiles but that doesn't really mean a lot.

 
.

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
10th August, 2010 at 14:33:53 -

well i think hes needing to use the tiles as actives so the cars cant go of the road

 
n/a
   

Post Reply



 



Advertisement

Worth A Click