Announcement

User registrations are currently disabled due to high spam traffic.

#1 09/11/09 11:12pm

g0ofygoober
Hardcore Member
Registered: 28/10/08
Posts: 194
Website

PFZ scoreboard system

this is an update about my website http://www.pspflashzone.com. As some of you may know I have been working on a scoreboard system for the site. well it is now finished  big_smile.  It is open to all developers and I have kept it as simple as possible. all you need to do is add a snippet of code to your game and tick the "use hi-score table" box when uploading it. this should mean that anyone making a game can add scoreboard functionality very easily without needing knowledge of how the whole thing works.

here is a link to one of the earlier games on the site (made by me)that has been edited to use the new scoreboard system so you can see how it  works:
http://www.pspflashzone.com/play.php?id=2

detailed instructions how to get the system working with your game plus a source fla of an example:
http://www.pspflashzone.com/information/hiscores.php

Please check it out and tell me what you think. if anyone needs help getting it working with there game I will be more than happy to help smile

Note: the game needs to be on pspflashzone for the scoreboard functionality to work. it wont work if it is being played off line or if it is being hosted on another site.

Offline

 

#2 10/11/09 4:54am

PSP1221
Regular Member
Registered: 29/03/08
Posts: 55
Website

Re: PFZ scoreboard system

Nice. That's pretty cool. But would I be right in saying that it won't work with Liveswif since Liveswif doesn't support dynamic text.

Offline

 

#3 10/11/09 5:52am

shinsukeito
The Explorer
From: Bloody Australia.
Registered: 23/09/08
Posts: 605

Re: PFZ scoreboard system

Awesome!!!!!!111one1!!eleven!

I'm gonna upload Hamburger Pits with the highscore system.
(Might be updated! big_smile)

Also, how do I add the highscore system to Hamburger Dodge if I've already uploaded it?

Do I have to upload it again?

Edit:

Because I'm adding extra stages, I want to add particular text to the player name.

Do I change the "sendvars.player_name = Pname;" bit to something like:

"sendvars.player_name = Pname + " - " + Stagename;"?

Or is there something else to change?

Last edited by shinsukeito (10/11/09 6:39am)


[img]http://dl.dropbox.com/u/1140693/sig.png[/img]

Offline

 

#4 10/11/09 4:49pm

g0ofygoober
Hardcore Member
Registered: 28/10/08
Posts: 194
Website

Re: PFZ scoreboard system

thanks for all the feedback smile

Nice. That's pretty cool. But would I be right in saying that it won't work with Liveswif since Liveswif doesn't support dynamic text.

I'm not really sure as I've never used Liveswf myself but basically all it needs is some way for the player to input a name which can then be retrieved through a variable. if there is no input text box in Liveswf it could still be done in other ways like an on screen keyboard or thing where you can individually select the letters using the arrow keys these would be harder to do but would still work.

I'm gonna upload Hamburger Pits with the highscore system.
(Might be updated! big_smile)

cool that would be awesome big_smile

Also, how do I add the highscore system to Hamburger Dodge if I've already uploaded it?

pm me or post a link to the new swf and ill replace the old one with the new one.

Because I'm adding extra stages, I want to add particular text to the player name.

Do I change the "sendvars.player_name = Pname;" bit to something like:

"sendvars.player_name = Pname + " - " + Stagename;"?

Or is there something else to change?

im not sure what you mean. to add text on to the players name you would do it like this:

change:
Pname = _root.name_input;

to:
Pname = _root.name_input + "-" + _root.Stagename;

this is assuming that Stagename is in the root of the game (on a frame in the main timeline). Also it is very important not to edit any code after the "do not edit anything after this line line" especially nothing after the "//posts data to php script" line.

Offline

 

#5 11/11/09 12:18am

PSP1221
Regular Member
Registered: 29/03/08
Posts: 55
Website

Re: PFZ scoreboard system

Hmmm...
I created a quick test .swf to see if I could get it to work with Liveswif, but when I uploaded the game it didn't get a scoreboard. I checked the box. hmm

Offline

 

#6 11/11/09 4:13am

keylinman
Moderator
Registered: 22/03/09
Posts: 328

Re: PFZ scoreboard system

sweet! That adds another reason 2 use ur site.
I WANNA BE #1


[url=http://profile.mygamercard.net/keylinman][img]http://card.mygamercard.net/aero/keylinman.png[/img][/url]

Offline

 

#7 11/11/09 8:17am

shinsukeito
The Explorer
From: Bloody Australia.
Registered: 23/09/08
Posts: 605

Re: PFZ scoreboard system

PSP1221 wrote:

Hmmm...
I created a quick test .swf to see if I could get it to work with Liveswif, but when I uploaded the game it didn't get a scoreboard. I checked the box. hmm

Happened to me too. I'm pretty sure something is wrong.

Oh, and by the way heres the link to the updated Hamburger Dodge:
http://www.sendspace.com/file/bxtuwy

Thanks!

Last edited by shinsukeito (11/11/09 8:25am)


[img]http://dl.dropbox.com/u/1140693/sig.png[/img]

Offline

 

#8 11/11/09 4:40pm

g0ofygoober
Hardcore Member
Registered: 28/10/08
Posts: 194
Website

Re: PFZ scoreboard system

OOPS! searched through the upload code and found the problem - a spelling mistake causing it to not set highscores to true. it is now fixed and i have manually highscore tables for the games affected. any scores already submitted are still there they just could not be viewed before.

@shinsukeito thanks for updating hamburger dodge i have uploaded it and enabled highscores. its good to see you managed to get it all working without any problems even with my terrible instructions tongue

@PSP1221 iv looked into it and it turns out liveswf only supports as1 and the function used to send the scores requires as2 sad so sorry liveswf people

Offline

 

#9 11/11/09 8:43pm

PSP1221
Regular Member
Registered: 29/03/08
Posts: 55
Website

Re: PFZ scoreboard system

Alright, you can delete that test then.

Offline

 

#10 12/11/09 2:03am

keylinman
Moderator
Registered: 22/03/09
Posts: 328

Re: PFZ scoreboard system

I GOT THE HIGH SCORE FOR THE PADDLE BALL GAME!


[url=http://profile.mygamercard.net/keylinman][img]http://card.mygamercard.net/aero/keylinman.png[/img][/url]

Offline

 

#11 12/11/09 4:01am

PSP1221
Regular Member
Registered: 29/03/08
Posts: 55
Website

Re: PFZ scoreboard system

keylinman wrote:

I GOT THE HIGH SCORE FOR THE PADDLE BALL GAME!

Darn you. Don't worry... I'll re-gain my top position. smile

Offline

 

#12 12/11/09 6:22am

shinsukeito
The Explorer
From: Bloody Australia.
Registered: 23/09/08
Posts: 605

Re: PFZ scoreboard system

g0ofygoober wrote:

@shinsukeito thanks for updating hamburger dodge i have uploaded it and enabled highscores. its good to see you managed to get it all working without any problems even with my terrible instructions tongue

Thanks for the help! Now I'm gonna go get a highscore on my game!


[img]http://dl.dropbox.com/u/1140693/sig.png[/img]

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson