Game Over on Timer

Type: Game Mechanic Brain
Level: 2 star
Pages: 1
Description: This brain will stop the game after one minute with a countdown displayed on screen. In the last 10 seconds of the timer it will play a warning beeping and display the number in red.

Kode

  1. WHEN [duration timer][60] // Change this for a longer or shorter timer
  2. …WHEN [timer seconds remaining][greater than ][10] DO [display][ceiling][timer seconds remaining][screen top center][x large font]
  3. …/….WHEN [else] DO [display][ceiling][timer seconds remaining][screen top center][x large font][red]
  4. …/…/….WHEN [countdown timer][loop][trigger on start] DO [play sound][sound:UI Positive][everywhere]
  5. …WHEN [timer seconds remaining][equal to][0] DO [game over]

 

 

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: