Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Darth Sidious 666
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location:
Posted: 10th Jul 2011 18:09
OK, I've managed to make this map using a method of clone and instance object for the tiles, but I've come across a problem.

I need to store the object ID, position and angle so it's a complete map.

The problem is Save Object only saves 1 object and not the entire "universe" (which would be faster) and I've tried to use arrays but it hangs and falls over (crashes). (Probably due to it having over 500 objects, it's only 6,500 polygons!)

(Some of you may recognize the map layout).

Can anyone help? I've included the code, its very long though!
Thanks!

Your skills are no match for the Power of DarkBASIC Pro!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 12th Jul 2011 03:55 Edited at: 12th Jul 2011 03:58
I've not yet looked at the code but if your creating a map have you looked into the 'LIMB' commands. If you add each object that you've created to the original as a limb to create your map then the save object will save the entire object and all of its limbs.

EDIT: Nice piece of work too. (I had a look )

Warning! May contain Nuts!
Darth Sidious 666
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location:
Posted: 13th Jul 2011 15:28
Looks like the limb idea is working, thanks.

Never thought about limbs much, always thought they belonged to a character rather than a level!

Never thought the solution would be that simple.

Your skills are no match for the Power of DarkBASIC Pro!

Login to post a reply

Server time is: 2026-07-11 02:36:54
Your offset time is: 2026-07-11 02:36:54