The Daily Click ::. Forums ::. Klik Coding Help ::. Saving objects...
 

Post Reply  Post Oekaki 
 

Posted By Message

RenatoDep

The Ion Adventurer

Registered
  22/03/2003
Points
  804

KlikCast Star
19th April, 2006 at 08:33:53 -

I was wondering what would be the most efficient way to do this. If a character has to grab coins throughtout the stage, and goes to a different frame, comes back to the previous frame, wha'ts the easiest way to make it so it remembers what coins have been collected and what have not, they'd be all same objects... I'm sure people have asked this, i searched but couldn't find anything..sorry in advance if such is the case

 
http://www.galaxiachronicles.com
http://www.eivix.com

Yami



Registered
  23/12/2003
Points
  608
19th April, 2006 at 09:04:17 -

http://www2.create-games.com/article.asp?id=188

 
Image

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
19th April, 2006 at 12:01:16 -

That shows how to use INIs... but not the most efficient way to save a collection of objects.

If you're going to be using an INI you could keep a record of the objects that have been collected (use the objects' Fixed Values to identify them). That seems spectacularly inefficient to me, though, and I'm sure there's a better way.

 
http://www.davidn.co.nr - Games, music, living in America

RenatoDep

The Ion Adventurer

Registered
  22/03/2003
Points
  804

KlikCast Star
19th April, 2006 at 16:22:06 -

Thank you guys, Well...I know how to use the INI file. I like using array file myself. Like David Newton said...it's more on how to save the individual objects themselves...

 
http://www.galaxiachronicles.com
http://www.eivix.com
   

Post Reply



 



Advertisement

Worth A Click