The Daily Click ::. Forums ::. Klik Coding Help ::. A counter that counts even when the game is closed?
 

Post Reply  Post Oekaki 
 

Posted By Message

Jason Orme

Using Klik Products Since 1998

Registered
  24/05/2002
Points
  960

VIP Member360 OwnerWii OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimeI'm a Storm TrooperI'm on a BoatIt's-a me, Mario!
Sonic SpeedMushroomStrawberryI like Aliens!PS3 OwnerTurtle Power!I am an April Fool
11th March, 2011 at 00:41:28 -

I'm sure many of you have played those social network games where you gain energy every 3mins if the game is open or closed.

Is it possible to do something like that with a flash game? I know how to work INI's with the swf exporter but not how one would go about doing that sort of thing.

 
www.jsofts.com

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
11th March, 2011 at 01:49:06 -

I'd probably log the time when the application ends (or perhaps every 3 minutes), and at the beginning of the game, find the time that has passed in minutes, divide it by 3, and multiply it by however many points you get every 3 minutes.

 

  		
  		

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
11th March, 2011 at 05:30:49 -

You need to use a server time to check this. For example, get the time from the server when the player connects the first time they connect and subtract the time when they reconnect to give you the time they were disconnected for. Any other system is easily tampered with (such as the user changing their system clock).

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click