iphone - storing highscores ?? (BUG!)

Game Editor comments and discussion.

iphone - storing highscores ?? (BUG!)

Postby sonicfire » Wed Dec 29, 2010 11:58 pm

Hi folks!

Just started to create my own game using GE ... plan to release it for the iphone.
Now one question comes to my mind -> when i start the game, i want to display the last achieved highscore.

My quesion: (How) is this possible at all?? Can you store a simple textfile or something on the iphone´s memory?
How would that work?

Thanks in advance :-)

Cheers!
Last edited by sonicfire on Wed Feb 09, 2011 8:13 pm, edited 1 time in total.
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: iphone - storing highscores ??

Postby skydereign » Thu Dec 30, 2010 1:58 am

You can use the saveVars loadVars functions. You could also use a text file, but that makes it easier to edit. You can look the functions up here.
http://game-editor.com/docs/script_reference.htm

You can also search the forums, where there are many examples.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: iphone - storing highscores ??

Postby sonicfire » Thu Dec 30, 2010 3:51 pm

thanks! :) so this means load & savevars can be used on the iphone without problems? that´s excellent :D
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: iphone - storing highscores ??

Postby sonicfire » Fri Dec 31, 2010 3:44 pm

just tried it works like a charm. (Windows XP) now i have to see if it works on iPhone/iPod Touch as well :)
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: iphone - storing highscores ??

Postby Kodo » Sun Jan 23, 2011 4:28 pm

sonicfire, did you test this on the iPhone yet? I'm porting an old game to iPhone that used to save and load data using loadvvars and savevars perfectly, but on iPhone it seems that is saves okay but doesnt load. I thought I'd ask before I go looking for bugs.
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Re: iphone - storing highscores ??

Postby Kodo » Sun Jan 23, 2011 4:49 pm

Actually, don't worry. I spotted an obvious mistake I'd make and now everything is loading and saving on iPhone just fine :)
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Re: iphone - storing highscores ??

Postby akr » Sun Jan 23, 2011 5:26 pm

So you dont trust my code? ;-)
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score

Re: iphone - storing highscores ??

Postby sonicfire » Sun Jan 23, 2011 5:31 pm

@kodo: yes, it loads/saves fine :-)

EDIT: using geapp now i´m unsure but have to see how this works/performs when my game is on the appstore :)
Last edited by sonicfire on Sun Jan 23, 2011 9:28 pm, edited 1 time in total.
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: iphone - storing highscores ??

Postby Kodo » Sun Jan 23, 2011 7:03 pm

Lol akr, when I said I'd go looking for bugs, I did mean in my own code :)
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Re: iphone - storing highscores ??

Postby sonicfire » Wed Feb 09, 2011 8:12 pm

i just noticed that variables using load/savears aren´t propely saved somehow on the i-devices!

must be a little BUG! in my moon twit game, scores are not reloaded when the game starts (on PC it worked) !
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: iphone - storing highscores ?? (BUG!)

Postby again » Thu Feb 10, 2011 1:58 am

Yeah I brought this up before it happened in my Momo Alien starcatcher. Of course I fixed it before I sent it to apple. I dont know how your doing your highscore save but your best bet is to the it like the way I did in the Mario Kart mini GED I have in game demos forum.
Free windows mobile games like doodle jump and super mario bros
http://krenisis.freeforums.org/
again
 
Posts: 258
Joined: Wed Jan 19, 2011 7:06 pm
Score: 33 Give a positive score

Re: iphone - storing highscores ?? (BUG!)

Postby sonicfire » Thu Feb 10, 2011 11:44 am

again wrote:Yeah I brought this up before it happened in my Momo Alien starcatcher. Of course I fixed it before I sent it to apple. I dont know how your doing your highscore save but your best bet is to the it like the way I did in the Mario Kart mini GED I have in game demos forum.


you fixed it before? how did you do that? :) i was just using save- and loadvars!
will have a look for this mario kart mini GED ! thanks.
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest