New answers tagged timer
1
Computers are incredibly smart, and incredibly dumb; because they do exactly what you tell them to. For instance, you're telling it to play the sound when it finishes. =p
titleWhooshSoundChannel.addEventListener( Event.SOUND_COMPLETE,
onTitleWhooshFinished );
You have that line in several places in your ...
0
Note that your current solution will likely start both timers within 1 second of eachother, probably even within a few hundred milliseconds. Getting this more accurate is a difficult problem to solve with certainty, but you can get it "close enough" for games, although it's still not easy. I would also note that timing mechanisms on two different machines ...
0
I don't know what platform you are using but you should find out if you have access to a time function that returns the number of seconds since January 1st 1970.
IE:http://www.cplusplus.com/reference/ctime/time/
With that, you send your start time to the clients who can then figure out total elapsed time.
Otherwise you'll have to do some fancy math to ...
0
I could be wrong, but it seems as if "position.X = 0;" shouldn't be there in the case Coordinates.top.
Top 50 recent answers are included