The Daily Click ::. Forums ::. Klik Coding Help ::. how to add saving to my game
 

Post Reply  Post Oekaki 
 

Posted By Message

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 08:10:58 -

title says it all

 
Squigy my blob

maker of music
8-bit music though

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd August, 2008 at 08:16:39 -

no it doesnt.

saving what?

game configuration data? user data? private data?
level data? leveleditor map data? dialogue data?

text files, ini files, array files, all depends on the level of security you want the data to have.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 08:18:17 -

saving the progress of the game and then loading it back later on

 
Squigy my blob

maker of music
8-bit music though

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd August, 2008 at 08:21:54 -

an array would probably be best suited for this.

and each index would represent some sort of progress.

whether or not youve dont something. (quests)
how much of a certain inventory you have.
your current location.
etc.

you should easily be able to find an example on the forums or an article.

 
n/a

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 08:39:09 -

lol little confusing but ill try to figure it out

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 09:17:17 -

i need help in this one from a post
am i sopose to put this in another frame or the frame where my levels are?
* Upon pressing Button "Save" = ("Ini") - Set Value Val(Edittext$("Age")) to item "Age" in group "Player".
+ ("Ini") - Set String Edittext$("Name") to item "Name" in group "Player".
+ ("Ini") - Set Value X("Active") to item "XPos" in group "Player".
+ ("Ini") - Set Value Y("Active") to item "YPos" in group "Player".

Image Edited by the Author.

 
Squigy my blob

maker of music
8-bit music though

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
23rd August, 2008 at 09:47:40 -

Use the save game object.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 09:52:48 -

no i ment like am i suppose to put the ini on a new frame without and active or one with an active

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 10:04:49 -

another things that troubles me


* Upon pressing Button "Load" = ("Edit - Name") - Set text to GroupItemString("Ini","Player","Name")
+ ("Edit - Age") - Set text to Str$(GroupItemValue("Ini","Player","Age"))
+ ("Active") - Set XPos to GroupItemValue("Ini","Player","XPos")
+ ("Active") - Set YPos to GroupItemValue("Ini","Player","YPos")

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 10:04:51 -

yeah im very confused were to put it and yeah

Image Edited by the Author.

 
Squigy my blob

maker of music
8-bit music though

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
23rd August, 2008 at 17:02:10 -

That should work. But you have to do that with every active object that you want to save.

Use the save game object! Then you can save everything without dealing with INIs.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 18:18:35 -

ok i got the object but i need to know how to use it

 
Squigy my blob

maker of music
8-bit music though

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
23rd August, 2008 at 18:34:16 -

I guess you could start with creating a new app and... trying it.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 18:37:48 -

good idea I'm going to try it

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
23rd August, 2008 at 18:48:41 -

yeah i cant find out if ill keep trying

 
Squigy my blob

maker of music
8-bit music though
   

Post Reply



 



Advertisement

Worth A Click