![]() |
The Special Objects - The Time | ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The time object is a very easy method of adding every, time is, etc. events in Jamagic.
It is not called the Timer object, as in MMF because the Timer is already an object in Jamagic. To make a simple "Time is..." event:
As you may guess from the name, FrameTimeIs, you can check other times:
And other checks can be used:
Of course, these can be used with Game time and System time too. Alternatively, you can just retrieve the time and do your own checks:
FrameTimeIs( ... ) is recomended over FrameTime( ) == ... since exact times will rarely occur. FrameTimeIs gets around this problem through other methods. Another very important time-based event is Every.
Note that Every cannot be used with game time or system time. Working with system times System times are big. Very big. They are the number of milliseconds since the computer started. Because of this, it is pointless comparing them to a fixed number. System times are more commonly compared to a previous system time + a number. So what's the point in them then? Well, there aren't many. Without JAM, system time is all you have access to, making it very useful. But with JAM, it's pretty pointless. The Time object doesn't just show the game time, it can retreive the current second, minute, hour, day of week/month/year and loads more:
And finally, you can retreive the time the user has been idle for (not moved the mouse / pressed a key)
That's it :-) JAM © 2005 no one in particular Project started by David Evans in 2005 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||