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

Xio



Registered
  21/01/2008
Points
  218
24th August, 2008 at 00:26:35 -

Lol I'm using a iPhone right now to do this message so yeah I can't figure it out

 
Squigy my blob

maker of music
8-bit music though

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
24th August, 2008 at 01:28:50 -

If you want a really easy option you can use the "Save Frame" action in MMF2. I personally use the associative array object to save all my player data, I don't keep track of enemies in the save file though.

What you posted about doing with the ini object should work really...

If I have the time (school work to do) I'll make an example for you.

 
Image
http://bfollington.tumblr.com

Xio



Registered
  21/01/2008
Points
  218
24th August, 2008 at 03:09:42 -


Originally Posted by »Ben«
If you want a really easy option you can use the "Save Frame" action in MMF2. I personally use the associative array object to save all my player data, I don't keep track of enemies in the save file though.

What you posted about doing with the ini object should work really...

If I have the time (school work to do) I'll make an example for you.



i will really appreciate it

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
24th August, 2008 at 04:12:51 -

i found out a different way and I'm gonna try it out

 
Squigy my blob

maker of music
8-bit music though

Xio



Registered
  21/01/2008
Points
  218
24th August, 2008 at 04:25:07 -

almost had it but not anymore

still need an explanation or example

 
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
24th August, 2008 at 05:01:09 -

Search in the articles, there are many examples on how to save there.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


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

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
24th August, 2008 at 05:52:24 -

Here's an example with the old fashioned INI object: http://www.silvernova.co.uk/ben/saveexample.rar (zip version here: http://www.silvernova.co.uk/ben/saveexample.zip)

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com

Xio



Registered
  21/01/2008
Points
  218
24th August, 2008 at 07:32:06 -

it just takes me to the game downloads

 
Squigy my blob

maker of music
8-bit music though

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
24th August, 2008 at 13:04:57 -

Oh damn Tim has that hotlinking protection on right now... Hang on let me a make a download page for it...

http://www.silvernova.co.uk/ben/download.htm

There we go, click that link.

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com

Xio



Registered
  21/01/2008
Points
  218
25th August, 2008 at 05:50:08 -

ok i know now but now i have to get use to it

 
Squigy my blob

maker of music
8-bit music though
   

Post Reply



 



Advertisement

Worth A Click