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

Post Reply  Post Oekaki 
 

Posted By Message

Xio



Registered
  1/21/2008
Points
  218
23rd August, 2008 at 8:10:58 AM -

title says it all

 
Squigy my blob

maker of music
8-bit music though

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
23rd August, 2008 at 8:16:39 AM -

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.

 
Image

>> http://www.cecilectomy.com <<

Xio



Registered
  1/21/2008
Points
  218
23rd August, 2008 at 8:18:17 AM -

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

 
Squigy my blob

maker of music
8-bit music though

The Cecilizer

You Done Got Cecilized

Registered
  3/19/2005
Points
  1602

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!Computer
23rd August, 2008 at 8:21:54 AM -

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.

 
Image

>> http://www.cecilectomy.com <<

Xio



Registered
  1/21/2008
Points
  218
23rd August, 2008 at 8:39:09 AM -

lol little confusing but ill try to figure it out

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  1/21/2008
Points
  218
23rd August, 2008 at 9:17:17 AM -

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
  2/14/2002
Points
  6724

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

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
  1/21/2008
Points
  218
23rd August, 2008 at 9:52:48 AM -

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
  1/21/2008
Points
  218
23rd August, 2008 at 10:04:49 AM -

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
  1/21/2008
Points
  218
23rd August, 2008 at 10:04:51 AM -

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
  2/14/2002
Points
  6724

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

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
  1/21/2008
Points
  218
23rd August, 2008 at 6:18:35 PM -

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
  1/18/2007
Points
  2762

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

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
  1/21/2008
Points
  218
23rd August, 2008 at 6:37:48 PM -

good idea I'm going to try it

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  1/21/2008
Points
  218
23rd August, 2008 at 6:48:41 PM -

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