SCI Kernel Documentation/System Functions: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
Andrew Branscom (talk | contribs)
No edit summary
 
Line 51: Line 51:
* [[:Category:Interpreter Articles|Interpreter Articles]]
* [[:Category:Interpreter Articles|Interpreter Articles]]
* [[:Category:System Functions|System Functions]]
* [[:Category:System Functions|System Functions]]
* [[:Category:Animation Articles|Animation Articles]]
* [[:Category:Animation|Animation Articles]]
* [[:Category:SCI Scripting|SCI Scripting Articles]]
* [[:Category:SCI Scripting|SCI Scripting Articles]]
 
 
Line 77: Line 77:
[[Category:Scripting]]
[[Category:Scripting]]
[[Category:SCI Scripting]]
[[Category:SCI Scripting]]
[[Category:Animation Articles]]
[[Category:Animation]]

Latest revision as of 17:00, 17 January 2026

Official SCI Documentation
Table of Contents  

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Index

System Functions
Author: Jeff Stephenson   1988-04-04
Revision by: David Slayback   1989-07-25



System Functions


(Wait n)

Wait until n timer ticks (1/60th of a second) have passed since the last call to Wait. This is used to keep animation running at a constant speed -- each pass through the main loop ends with a call to Wait, so the main loop is executed at most once in a given time interval. The standard value of n is 6, leading to animation every 1/10th of a second. If more than n ticks have occurred since the last call to Wait, it returns immediately. The return value of Wait is the number of ticks more than n since the last call.


(GetTime [realTime])

With no arguments, returns the low word of the number of ticks (1/60th of a second) since the game was booted. With an argument, returns real system time in the format:

HHHH/MMMMMM/SSSSSS


References



Also See

 

Official SCI Documentation
Table of Contents

< Previous: Object Functions Next: String Functions >