diff --git a/Timeouts.md b/Timeouts.md new file mode 100644 index 0000000..3c54e84 --- /dev/null +++ b/Timeouts.md @@ -0,0 +1,14 @@ +# Timeouts + +The timeout function is built into `gameUtils.Game` and is therefor accessible just by calling the following within your game: +```python +self.timeout(timeoutID, delay) +``` + +## To use the events: +```python +# The onEvent function in your Game object +def onEvent(self, event): + if event.type == gameUtils.Timeout: + print(f'Timeout {event.timeoutID} just fired.') +``` \ No newline at end of file