game time

game time



Kode wheel segment World Properties
Style Number variable
Modifiers as time
Primarily WHEN/DO Both
Pre-made brains that use it unknown

World Properties> game time


This tile provides you with a number that reflects the number of seconds the game has been running to three digits (i.e. 24.357 seconds). You can alter how it displays using the [as time] modifier. It is not affected by the pace tiles.



Example Code

WHEN DO [display][screen top left][game time][as time]



as time: This is found in the kode wheel separate from the modifier segment. When you use [display][game time][as time] It will display the time in a proper time based format eg. I hour 47 minutes and 6 seconds would display like this:  01 47 06

in frames: Instead of seconds you can ask it to count in frames instead (30 per second).

Other Uses

You can use game time to set off events in your game by querying it on the WHEN side.

WHEN[started to] [game time][=][120] DO

…WHEN  DO [objvar:rocket][=][create][Firework Rocket A]

…/…WHEN DO [objvar:rocket][power on]

See Tutorial Game time Tile by Mescad

Project Spark Alphabet Video

Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: