The Daily Click ::. Forums ::. Klik Coding Help ::. Aargh! I Need help of saving destroyed objects!!! Again!!! AAAAAAAAAARRRGH!!!
 

Post Reply  Post Oekaki 
 

Posted By Message

en kerro



Registered
  21/10/2004
Points
  578
22nd February, 2005 at 11:55:33 -

I can now do that when-you-return-to-previous-frame-you-won't-see-item-you-have-collected. BUT! There's one more thing! I'll explain:
1. You are in frame 1. There's a save point.
2. You go to frame 2 from frame 1.
3. You collect an item. INI saves that it won't be there any more if you return to frame 2 later.
4.alt+F4=exit game without saving.
5.Open the game again.
6.You are in frame 1.
7.You go to frame 2, again.
8. YOU WON'T SEE AN ITEM! YOU COLLECTED IT LAST TIME BUT YOU DIDN'T SAVED!!! YOU DON'T HAVE IT!!! AAAAAAAAAAAAAAARRRRRRGHHH

please help me...

 
Current Projects:
The Artillerys 10%
Forgotten Legends 8%
Earth Defender 20%

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
22nd February, 2005 at 12:00:36 -

ok, calm down. Keep it how you have it, but when you save, copy all the items from the ini into an ini you use for the save. In global events, say if you exit the game, delete the first ini file.

 
n/a

en kerro



Registered
  21/10/2004
Points
  578
22nd February, 2005 at 12:15:22 -

aargh. do you mean this: ini1=savefile, ini2=item locations
EVENT: (when you save game): ini1 set current item to potion, retrieve value from ini2?
EVENT: Menu option"#quit" selected: destroy ini2.
Tell me Klikmaster, or someone else. I didn't got the idea


 
Current Projects:
The Artillerys 10%
Forgotten Legends 8%
Earth Defender 20%

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
22nd February, 2005 at 15:01:36 -

Modifications are made to the INI file on disk immediately, usually. If you write to an INI file when you collect an item then you don't need to "save" the INI to apply the changes, the file will change immediately. Then if you load on start of frame, you will be loading the changed version.

 
- Tigerworks

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
22nd February, 2005 at 16:07:56 -

You don't need two separate INI files, you can group the stuff inside them.

Please don't do the whole "AAAARGHHH!!!111" thing it's really annoying, man. We'll try to help but please ask nicely and we'll try to fix the problem there's no need to stress out.

 
http://www.fzgames.com

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
23rd February, 2005 at 16:13:47 -

Well put, Phizzy.

 
http://www.fzgames.com

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
23rd February, 2005 at 17:35:36 -

I just use arrays, so i change an array, and when you save, you save the array Woo!

 
n/a

en kerro



Registered
  21/10/2004
Points
  578
24th February, 2005 at 01:58:56 -

I think I'll use Klikmaster's array thing... it's maybe the simple one, I'm just a beginner... ...no I'm not. Not newbie but... rookie...

 
Current Projects:
The Artillerys 10%
Forgotten Legends 8%
Earth Defender 20%
   

Post Reply



 



Advertisement

Worth A Click