after

after

after

Details

Kode wheel segment Timing and Logic
Style Specialised
Modifiers None
Primarily WHEN/DO WHEN
Pre-made brains that use it unknown

Timing and Logic> after

Description

This tile runs the DO side, or any child lines, after the WHEN side is true. This turns what could be a single frame event into a continuous state event. In the example below the text will display if the player interacts with the object. Without the [after] tile the code the display would only appear for one frame. However, it only activates once, as the first time you do the action it activates, anything that happens later is still “after” and it dies not reset itself.

 

Example Code

 

WHEN [after][interacted] DO

…WHEN [duration timer][5] DO [display][screen center][text:Hello world]

 

Modifiers

 

None

Other Uses

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: