Skip to content
AEOWUN
Docs Menu

Make a timed Block

Create a Block, then remove it after a delay.

Create the script

This exercise combines temporary Cells and waiting. Save it as scripts/timed_block.aeo:

const block = cell.new("Block")
block.position = [5, 2, 5]
block.color = [1, 0.5, 0]
wait(2.0)
cell.delete(block)
debug.log("Block removed")

Check the result

Start Play. Look at the Block before two seconds pass. It should disappear and Output should show Block removed. Use an open position in your World so the Block is visible. This is a small scripting exercise; it does not create a complete game.

Continue

Read Waiting to understand the pause. Use Events when an action should happen after player input or contact.

[BETA] marks features newer than the current public release. Current release: 0.8.0.