Stage::waitSeconds()
Holds up the code that calls it for a number of seconds. Called in main (a program
written straight down the page), the game keeps running meanwhile and the seconds are game
time. Called in run() or an event, the whole game waits, as it does for any slow
code; the window stays responsive.
Syntax
Java
.waitSeconds(seconds)
Parameters
| Name | Data Type | Description |
|---|---|---|
| seconds | double | how long |
Return
void