need help in idea for formula for a game

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
fastwings
Forum Newbie
Posts: 4
Joined: Fri Feb 10, 2006 8:05 am
Contact:

need help in idea for formula for a game

Post by fastwings »

ok
i build a game web base ok
i try calculation from point a to b
a its a start the hollow beteen a to b is can be planet to planet
, solor system to solor system and even galaxy
ok
the distance of solor system is something like 700 and galaxy is 1200 and star 15
ok have a formula that creat the resource that need get there cuz the game base on real time
i need somehow start a counter me problem is like that
i have tring that way
get from the formula a int number
ok after at i have tring make at in this fomat days hours mins
ok now i am kinda stuck at how do that format
i need some kind of formula do u have any idea how its can be done
b.c the number can be any number that type of int
and his minimum get to 20-30 something like that
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I've read this post multiple times, and it still doesn't make sense.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

so you need a formula that will take some number and convert that into a time based number.

If london to birmingham is 200 miles how long will it take to get there?
That sort of idea?
fastwings
Forum Newbie
Posts: 4
Joined: Fri Feb 10, 2006 8:05 am
Contact:

Post by fastwings »

mm sry but that problem was solved

but have one more questions
i want build in php some kind of service that run even when the user not there mean that
lets say some kinda of counter that will say hellow to the user or want ever
even when the user exit the script the script its self will continue to run without the user untill the count will stap u konow how\place that explain how i can build that
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Vicky Pollard? (only uk residents will get that.. if they watch Little Britain :P)

To the OP: What you want done, can be done, but in order for it to be done, specific and exact parameters and requirements must be used and specified.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Jenk wrote:Vicky Pollard? (only uk residents will get that.. if they watch Little Britain :P)
For those of us (unfortunately) outside of Britian:
http://www.littlebritain.tv/characters_vicky.htm
http://vickypollard.tripod.com/id2.html
Jenk wrote:To the OP: What you want done, can be done, but in order for it to be done, specific and exact parameters and requirements must be used and specified.
It sounds like you want a proccess running on the server that will update user records at regular time intervals.
(#10850)
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Sounds like a job for cron to me
Post Reply