BlocosIA Wiki Editor

Events

Hat

when bandeira clicked

Starts the script when someone clicks the green flag.

Hat

when [space] key pressed

Starts the script when a key is pressed.

Hat

when this sprite clicked

Starts when someone clicks this sprite on the stage.

Hat

when I start touching [ ▾ ]

Starts once each time this sprite touches another one, the pointer or the edge. It doesn't repeat while still touching: perfect for drums, collecting items and collisions.

Hat

when backdrop switches to [ ▾ ]

Starts when the backdrop switches to the chosen one.

Hat

when I receive [ ▾ ]

Starts when a message is broadcast (by any sprite).

Stack

broadcast [ ▾ ]

Sends a message to every sprite. It is how sprites talk.

Stack

broadcast [ ▾ ] and wait

Sends the message and waits for everyone who received it to finish.

Cap

click the bandeira (start the game again)

Does the same as clicking the green flag: stops everything and starts the project from the beginning. Great for "Play" and "Play again" buttons in exported games (websites, itch.io, Capacitor app), which come without the flag bar.

Cap

click the parar (stop everything)

Does the same as the Stop button: stops all scripts, sounds and motors. In an exported game without the bar, "Tap to play again" appears.

Hat

when the screen is touched

Starts a script when this happens.

Hat

when swiping [↑ up]

Starts a script when this happens.

Hat

when [2] fingers touch the screen

Starts a script when this happens.

Hat

when the phone tilts [← left]

Starts a script when this happens.

Boolean

screen touched?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

fingers on screen

Gives a number or text. Put it inside a round slot.

Reporter

touch [x]

Gives a number or text. Put it inside a round slot.

Reporter

phone tilt [left-right]

Gives a number or text. Put it inside a round slot.

Stack

vibrate the phone for ( ) secs

Does an action. Snap it below another block.

Stack

default on-screen controls (mobile): [show]

Shows or hides the default on-screen mobile controls (to use default controls or create custom actor buttons).

Boolean

default on-screen controls visible?

True if the default on-screen mobile control buttons are visible.

Stack

simulate key [space] [pressed]

Simulates pressing or releasing a keyboard key. Ideal for programming custom mobile control buttons made with sprites.

Hat

when stage clicked

Starts when someone clicks the stage.

Hat

when this stage starts

Starts when this stage (scene) begins.