The Daily Click ::. Forums ::. Klik Coding Help ::. noobish ini prob
 

Post Reply  Post Oekaki 
 

Posted By Message

moonbird99



Registered
  03/04/2004
Points
  910
2nd April, 2005 at 16:00:31 -

trying to save a level with ini (TGF) - eg: on level 5 a counter is set to 1 and ini is set to that counter. On level one i have click load, set to counter BUT every time i run game anew the counter is always still at 0 - i know i'm being a bit thick but help

 
to start press any key ...... where's the ANY KEY??

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
2nd April, 2005 at 16:08:39 -

I've had the problem before of the events happening too fast and not giving proper values.
Try making the set group/set item/set counter to value of Ini in different lines. It helped me.

 
Craps, I'm an old man!

moonbird99



Registered
  03/04/2004
Points
  910
2nd April, 2005 at 16:11:03 -

sorry - what you mean "different lines" ?

 
to start press any key ...... where's the ANY KEY??

defenestrator

Old

Registered
  12/07/2003
Points
  724
2nd April, 2005 at 16:16:20 -

Do this:

Make an INI object and two counters.

Event 1:
Always set Counter to random(100)

2:
Upon pressing "Space bar" set INI value (item) to "number", value("Counter")

3:
Upon pressing "Return" set Counter 2 to ItemValue( "Ini", "number" )

Run it, try it out, and then let me know if that works and explains the problem for you.

 
n/a

moonbird99



Registered
  03/04/2004
Points
  910
2nd April, 2005 at 16:19:11 -

thx - i'll try

 
to start press any key ...... where's the ANY KEY??

moonbird99



Registered
  03/04/2004
Points
  910
2nd April, 2005 at 16:37:39 -

mmm that was okay nut when i apply to game it fails - is the ini setup important? think i need a basic ini tutorial for level saving

Image Edited by the Author.

 
to start press any key ...... where's the ANY KEY??

defenestrator

Old

Registered
  12/07/2003
Points
  724
2nd April, 2005 at 18:38:52 -

I'm not sure how it is on TGF as I haven't used it6 in so long. All I remember is that using the Ini+ object was a lot more effective than using the regular one, so make sure you're using that. Other that, you're just going to have to apply the knowledge that you have acquired, grasshopper.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click