Cody CreedDeveloper & educator

A HELPING HAND

Get to know
your blocks.

A picture, a plain-language explanation, and somewhere to start.

Find the block you need, see what its inputs do, and try it in your next idea. This is the illustrated Block Playground language reference, with all 68 blocks and interface controls.

Download the illustrated Word reference

Getting started with events and inputs

Build your program in the central workspace. Events start stacks of commands. Rounded reporters provide values or true and false conditions for other blocks. Most scene blocks select an Actor, Animal, or Vehicle and a numbered slot from 1 to 4.

When Play clicked

When Play clicked block in Block Playground

Starts the commands attached below it once when you click the green Play button. Use this stack to prepare your scene.

Inputs and choices. None.

Use it for. Choose models, place your characters, reset scores, and set the camera.

Keep in mind. Keyboard and joystick event stacks also respond to their own inputs. They do not have to be nested under this event.

Link to this block

When a keyboard key is pressed

When a keyboard key is pressed block in Block Playground

Starts its attached commands when the selected key is pressed. The stack repeats while the key is held and stops when it is released.

Inputs and choices. A keyboard key, such as A, W, or Space.

Use it for. Hold a key to move a platform, turn a vehicle, or perform a custom action.

Keep in mind. Use Enable WASD Motion for standard character movement. Use separate key events for additional controls.

Link to this block

Keyboard key pressed condition

Keyboard key pressed condition block in Block Playground

Reports whether the selected key is currently held. This is a condition to put into another block; it does not start a stack by itself.

Inputs and choices. A keyboard key.

Use it for. Put it into If or Wait Until, or combine it with another condition using AND.

Link to this block

When a joystick control is pressed

When a joystick control is pressed block in Block Playground

Runs its attached commands while an onscreen joystick control is pressed. Release is checked when the stack finishes a pass through its body.

Inputs and choices. Up, Down, Left, Right, A, or B.

Use it for. Steer with the onscreen arrows or give the A and B buttons custom actions.

Keep in mind. A Wait in the body can finish before the release is checked.

Link to this block

Joystick pressed condition

Joystick pressed condition block in Block Playground

Reports whether a selected onscreen joystick control is pressed. Put this rounded condition into a control block.

Inputs and choices. Up, Down, Left, Right, A, or B.

Use it for. Check whether B is pressed and a score or health condition is also true.

Link to this block

Flow control

Control blocks choose a branch, repeat commands, or wait before continuing. Place commands inside the open body of a control block. Wait blocks pause their own stack while other stacks continue.

If

If block in Block Playground

Runs the commands inside its body only when the condition is true. Otherwise, it skips them.

Inputs and choices. A true or false condition.

Use it for. Show a warning when Ground Distance is less than a chosen radius.

Link to this block

If Else

If Else block in Block Playground

Runs the upper body when the condition is true. Runs the lower Else body when it is false.

Inputs and choices. A condition and two groups of commands.

Use it for. Choose between a nearby greeting and a distant instruction.

Link to this block

Wait

Wait block in Block Playground

Pauses this stack for the supplied number of seconds, then continues with the next command. Other event stacks keep running.

Inputs and choices. Time in seconds; the default is 1.

Use it for. Pause between dialogue lines or slow a repeating caption update.

Keep in mind. Wait 0 yields execution between engine updates. In a repeating control loop, this prevents many passes from being squeezed into one frame.

Link to this block

Wait Until

Wait Until block in Block Playground

Pauses this stack until its condition becomes true. The condition is checked again on each engine update. There is no body to fill.

Inputs and choices. A condition, such as Ground Distance < 10.

Use it for. Wait for the player to approach before starting a conversation.

Link to this block

Repeat

Repeat block in Block Playground

Runs the commands inside its body the chosen number of times, then continues after the loop.

Inputs and choices. A nonnegative whole number; the default is 5.

Use it for. Repeat an animation sequence five times.

Keep in mind. Use whole counts such as 0, 5, or 10. Negative or fractional counts can keep this implementation running indefinitely.

Link to this block

Repeat Forever

Repeat Forever block in Block Playground

Repeats the commands in its body until Stop is pressed or a supported control command exits the loop.

Inputs and choices. A body containing the commands to repeat.

Use it for. Monitor proximity or keep a moving obstacle active.

Keep in mind. Add Wait 0 for a recurring control check, or a positive Wait for a timed interval. Put separate ongoing activities in separate stacks; commands after an unbroken Forever loop cannot run.

Link to this block

Repeat Until

Repeat Until block in Block Playground

Repeats its body until the condition becomes true, then continues with the next command.

Inputs and choices. A true or false condition and a body of commands.

Use it for. Continue moving toward another slot until its distance is below a chosen radius.

Link to this block

Break Loop

Break Loop block in Block Playground

Exits the nearest surrounding loop and continues after that loop. If there is no surrounding loop, it continues to the next command.

Inputs and choices. None.

Use it for. Leave a patrol or search loop as soon as its goal is reached.

Link to this block

Return

Return block in Block Playground

Stops the running program, including all of its event stacks. Its current behavior is the same as stopping the execution manager.

Inputs and choices. None.

Use it for. End the whole activity when a game is over.

Keep in mind. Return does not return from just one function. Let a function reach its end if the caller should continue.

Link to this block

Objects position and movement

A numbered slot is the object you control; the selected model is the character, animal, or vehicle displayed in that slot. The same slot can continue to be controlled after its model changes. Commands change a slot immediately unless their description says otherwise.

Move an Actor Animal or Vehicle

Move an Actor Animal or Vehicle block in Block Playground

Moves the selected slot by the supplied amount each time this command runs. Move follows the direction the object is facing; X, Y, and Z use the world axes.

Inputs and choices. Actor, Animal, or Vehicle; slot 1 to 4; Move, X, Y, or Z; amount. The default amount is 0.01.

Use it for. Move an elevator along Y or move a character forward while a key is held.

Keep in mind. The amount is per invocation, not a speed per second. Values around 0.05 can already feel fast in repeated movement. Negative amounts reverse the direction.

Link to this block

Rotate an Actor Animal or Vehicle

Rotate an Actor Animal or Vehicle block in Block Playground

Turns the selected slot by the supplied number of degrees each time the command runs, using its local axes.

Inputs and choices. Category; slot 1 to 4; Yaw, Pitch, or Roll; amount. The default is 0.15 degrees.

Use it for. Steer a vehicle with yaw, tilt an aircraft with pitch, or roll an object.

Keep in mind. Yaw turns around Y, Pitch around X, and Roll around Z. Repeated calls accumulate rotation.

Link to this block

Enable WASD Motion

Enable WASD Motion block in Block Playground

One setup command gives the selected slot keyboard movement until Stop is pressed. W and S move forward and backward; A and D turn left and right without strafing.

Inputs and choices. Actor, Animal, or Vehicle; slot 1 to 4; speed. The default is 10.

Use it for. Put this under When Play Clicked after choosing and placing a model. Add Camera Follow for a simple controllable character.

Keep in mind. Space starts a non-physics jump. Hold Q to descend and E to rise; releasing flight keys leaves the object at that height. Speed 10 gives 4.8 world units per second and 90 degrees of turning per second. You do not need a Forever loop. Movement does not simulate collisions or choose animations automatically.

Link to this block

Point Towards

Point Towards block in Block Playground

Turns one slot to face another slot without moving either object. Ground aims across X and Z; 3D also aims up or down using Y.

Inputs and choices. Ground or 3D; source category and slot; target category and slot.

Use it for. Make Animal 2 face Actor 1 before moving forward.

Keep in mind. Ground removes pitch and roll. This is an immediate turn, not a smooth tracking controller; repeat it if the target moves.

Link to this block

Place at a preset location

Place at a preset location block in Block Playground

Moves the selected slot to a named destination and copies that destination's rotation.

Inputs and choices. Category; slot 1 to 4; Fair, Fountain, Skyscraper, Factory, Stadium, ShipYard, Airport, TrainStation, ObjectPool, or 2DScene.

Use it for. Place a character at the fair or a vehicle at the airport.

Keep in mind. The chosen destination must exist in the current scene.

Link to this block

Move to a world position

Move to a world position block in Block Playground

Sets the selected slot's world position immediately to the supplied X, Y, and Z coordinates.

Inputs and choices. actor, animal, or vehicle; slot 1 to 4; X, Y, and Z. Defaults are 0, 0, and 0.

Use it for. Set a starting position or reset a character to a known place.

Keep in mind. This teleports the slot. It does not animate a journey to the new position.

Link to this block

Set a model in a slot

Set a model in a slot block in Block Playground

Chooses the model displayed in an Actor, Animal, or Vehicle slot.

Inputs and choices. Category; slot 1 to 4; model dropdown.

Use it for. Put a doctor in Actor 1, a gorilla in Animal 1, or a helicopter in Vehicle 1.

Keep in mind. Choose a model that belongs to the selected category. The model dropdown includes entries from multiple categories.

Link to this block

Set a model by name

Set a model by name block in Block Playground

Chooses the model in a numbered slot using its recognized name as text. A reporter can supply that name.

Inputs and choices. Category; slot 1 to 4; exact model name. The pictured default is Rat.

Use it for. Read an item from the built-in Animals list and use it to change Animal 1.

Keep in mind. Names must match the available content and its category. Rat belongs in an Animal slot; change the pictured Actor dropdown for that example.

Link to this block

Set Scale

Set Scale block in Block Playground

Sets the selected object's uniform local scale. This is an absolute value, not a multiplier of its current scale.

Inputs and choices. Category; slot 1 to 4; scale. The default is 1.

Use it for. Use 20 for a giant gorilla or a small positive value to shrink a model.

Keep in mind. Scale 1 restores normal local scale. Scaling changes the visual size; it does not make the distance reporter measure the model's outer surface.

Link to this block

Set Vehicle Wheels

Set Vehicle Wheels block in Block Playground

Spins the configured rotating parts of a vehicle slot. These may be wheels, helicopter parts, or parts of a spinning obstacle.

Inputs and choices. Vehicle slot 1 to 4; forward, backward, or off; speed. The pictured default is 100.

Use it for. Spin a car's wheels or run a rotating spike roller.

Keep in mind. Speed is degrees per second. Direction controls the sign; off or speed 0 stops the spin. The slot needs configured rotating parts.

Link to this block

Character animation and presentation

Animation depends on the chosen model and its available states. Captions and speech bubbles display text without pausing the stack, so use Wait when the timing of the next command matters.

Animate an Actor or Animal

Animate an Actor or Animal block in Block Playground

Plays a selected animation action on the chosen Actor or Animal. The runtime looks for a compatible animation state on that model.

Inputs and choices. Actor or Animal; slot 1 to 4; animation dropdown, Idle, Walk, Run, Attack, Death, or Eat.

Use it for. Switch a character to Walk or make an animal attack when it is near the player.

Keep in mind. Not every model supports every action. This block does not move the slot through the world.

Link to this block

Animate by name

Animate by name block in Block Playground

Plays an animation supplied by name. A text value or reporter can choose the name.

Inputs and choices. Actor or Animal; slot 1 to 4; animation name. The default is Walk.

Use it for. Cycle through names from the built-in Animations list.

Keep in mind. Some friendly Actor names are mapped to their animation states. Availability still depends on the model; an unsupported name may produce no animation.

Link to this block

Caption Text

Caption Text block in Block Playground

Displays a screen caption in one of the four corners for the supplied time. Execution continues while the caption is visible.

Inputs and choices. Text; Top Left, Top Right, Bottom Left, or Bottom Right; seconds. The default is 3.

Use it for. Show a score, tutorial hint, or level-complete message.

Keep in mind. There is one shared caption panel. A later caption replaces the previous one even if it uses another corner. Combine related status text into one caption. A nonpositive duration falls back to 3 seconds.

Link to this block

Actor Says

Actor Says block in Block Playground

Displays a speech bubble above the chosen Actor, Animal, or Vehicle for the supplied time. It displays text rather than spoken audio.

Inputs and choices. Category; slot 1 to 4; text; seconds. Defaults are Hello and 3.

Use it for. Let a character greet the player or add dialogue to a classroom story.

Keep in mind. The next command runs without waiting for the bubble to disappear. Add Wait to pace a conversation.

Link to this block

Cameras

Camera Follow tracks a slot. WASD Camera lets you explore independently. Enable WASD Motion controls an object and is a separate block from WASD Camera.

Camera Follow

Camera Follow block in Block Playground

Makes the camera follow a selected slot using the chosen camera style. It switches off the free fly camera.

Inputs and choices. 3D Follow, Top Down, or Side Scroller; Actor, Animal, or Vehicle; slot 1 to 4.

Use it for. Follow a controllable animal, create a top-down driving view, or use a side-scrolling scene.

Keep in mind. The last number selects the target slot. It is not the camera distance.

Link to this block

Camera Offset

Camera Offset block in Block Playground

Sets one camera property to the supplied value. X, Y, and Z change follow offsets. Pitch, Yaw, and Roll change the Top Down view's rotation.

Inputs and choices. X, Y, Z, Pitch, Yaw, Roll, Zoom, or Smoothness; value. The default is 0.

Use it for. Raise a follow camera with Y or tune the view and follow smoothing.

Keep in mind. Zoom sets perspective field of view or orthographic size, depending on the current camera. It does not move the camera toward the object.

Link to this block

WASD Camera

WASD Camera block in Block Playground

Enables a free camera for exploring the scene. W and S move forward and backward; A and D strafe. Q moves down and E moves up.

Inputs and choices. Movement speed; the pictured default is 10. The runtime supports enable and disable mode for this block.

Use it for. Explore the city, compose a view, or make a fly-through.

Keep in mind. Hold the right mouse button and drag to look around; the middle button pans and the scroll wheel moves forward or backward. Enabling clears the follow target. Use Camera Follow to return to tracking a slot. Avoid enabling free camera and object WASD controls together unless you want both to respond to the same keys.

Link to this block

Values arithmetic and comparisons

Rounded reporters supply values to other blocks. Put them into a value socket by dragging them onto that socket. Comparisons return true or false conditions; they do not start an event on their own.

Addition

Addition block in Block Playground

Adds two numeric values. If either input is text, joins the two values as text instead.

Inputs and choices. Two numbers, text values, or compatible reporters.

Use it for. Add two scores or join a label with a variable value, such as Score plus the current score.

Link to this block

Subtraction

Subtraction block in Block Playground

Subtracts the right numeric input from the left input. Negative and decimal values are supported.

Inputs and choices. Two numeric values or reporters.

Use it for. Calculate remaining health or the difference between two coordinates.

Keep in mind. Invalid text or non-finite numbers give 0. This reporter calculates a result; it does not update a variable.

Link to this block

Multiplication

Multiplication block in Block Playground

Multiplies numeric inputs. With one text input and one numeric input, it can repeat the text instead.

Inputs and choices. Two values or reporters.

Use it for. Double a numeric scale or score.

Keep in mind. Keep both inputs numeric when you want arithmetic.

Link to this block

Division

Division block in Block Playground

Divides the left numeric value by the right numeric value.

Inputs and choices. Two numeric values or reporters.

Use it for. Calculate an average or a fraction of a score.

Keep in mind. Do not divide by 0. This implementation does not guard against a zero divisor.

Link to this block

Greater Than

Greater Than block in Block Playground

Reports whether the left input is greater than the right input. With numeric inputs, it compares the numbers.

Inputs and choices. Two values or reporters.

Use it for. Check whether Score is greater than 10.

Keep in mind. This older block compares text lengths if an input is text. Use Compare Values for explicit numeric thresholds and exact text equality.

Link to this block

Equal

Equal block in Block Playground

Reports whether two values are equal. Numeric inputs use exact numeric equality; text inputs use exact text equality.

Inputs and choices. Two values or reporters.

Use it for. Check whether a score equals 10 or a state equals a specific name.

Keep in mind. Exact coordinate equality is fragile for proximity. Use Distance with a less-than comparison instead.

Link to this block

Compare Values

Compare Values block in Block Playground

Compares the left and right values using the selected operator. Numeric inputs are compared numerically. Text supports exact, case-sensitive equality and inequality.

Inputs and choices. First value; <, <=, =, !=, >=, or >; second value.

Use it for. Use Distance < 10, Score >= 20, or State = Finished.

Keep in mind. Ordered text comparisons return false. Use a range for decimal tolerances rather than requiring exact equality.

Link to this block

Ground and 3D Distance

Ground and 3D Distance block in Block Playground

Reports the distance between two numbered slot holders. Ground measures across X and Z and ignores height. 3D also includes Y.

Inputs and choices. Ground or 3D; first category and slot; second category and slot.

Use it for. Use Ground Distance < 10 to trigger a greeting, chase, or nearby interaction.

Keep in mind. This measures between slot origins, not the edges of the visible models, and does not detect physics collisions. If a holder cannot be found, it reports a very large distance instead of a false zero-distance contact.

Link to this block

Random Number

Random Number block in Block Playground

Returns a random numeric value in the supplied range. The result may contain decimals.

Inputs and choices. Minimum and maximum values.

Use it for. Vary a character's starting position or an obstacle's speed.

Keep in mind. Do not assume it returns a whole-number list index. Use a tested whole-number selection strategy for indexing.

Link to this block

Position or rotation of a slot

Position or rotation of a slot block in Block Playground

Reports one world-position or world-rotation component of the selected slot.

Inputs and choices. X, Y, Z, Rotation X, Rotation Y, or Rotation Z; category; slot 1 to 4.

Use it for. Check a boundary, read an object's height, or calculate a relative coordinate.

Keep in mind. Rotation values are world Euler angles in degrees. Ground and 3D Distance are simpler for proximity checks.

Link to this block

Logic gates

Logic gates combine conditions for If, Wait Until, and other control blocks. Use true or false reporters such as Key Pressed, Compare Values, and List Contains. These gates return 1 for true and 0 for false.

AND

AND block in Block Playground

True when both conditions are true.

Inputs and choices. Two Boolean conditions.

Use it for. Require a key press and enough points.

Link to this block

NOT

NOT block in Block Playground

Reverses a Boolean condition: true becomes false, and false becomes true.

Inputs and choices. One Boolean condition.

Use it for. Continue only when the player is not nearby.

Keep in mind. Use Boolean inputs for logical NOT; other input types have different behavior.

Link to this block

OR

OR block in Block Playground

True when at least one condition is true.

Inputs and choices. Two Boolean conditions.

Use it for. Open a gate when either of two controls is pressed.

Link to this block

XOR

XOR block in Block Playground

True when exactly one of the two conditions is true.

Inputs and choices. Two Boolean conditions.

Use it for. Require one switch to be on and the other off.

Link to this block

NAND

NAND block in Block Playground

False only when both conditions are true.

Inputs and choices. Two Boolean conditions.

Use it for. Allow an action unless both restrictions apply.

Link to this block

NOR

NOR block in Block Playground

True only when neither condition is true.

Inputs and choices. Two Boolean conditions.

Use it for. Continue only while neither stop condition is active.

Link to this block

XNOR

XNOR block in Block Playground

True when both conditions have the same truth value.

Inputs and choices. Two Boolean conditions.

Use it for. Check whether two switches are both on or both off.

Link to this block

Variables and lists

Variables store named values such as a score. Lists store several values in order. Create them through the interface before using their reporters or commands. User-created lists start at index 0; the separate built-in content lists start at index 1.

Create a variable

Create a variable block in Block Playground

Opens the interface for creating a named variable. Once created, its reporter and name become available to your program.

Inputs and choices. A unique variable name.

Use it for. Create Score, Health, Lives, or CurrentAnimal.

Keep in mind. This is an interface button, not a command you place in a stack. Use Set Variable to give the new variable its starting value.

Link to this block

Variable reporter

Variable reporter block in Block Playground

Reads the current value of a registered variable. Drag its rounded block into another block's input socket.

Inputs and choices. The named variable created through the interface.

Use it for. Show Score in a caption or use Health in a comparison.

Link to this block

Set Variable

Set Variable block in Block Playground

Assigns a new value to the chosen variable. The value can be text, a number, or the result of a reporter.

Inputs and choices. Variable; new value.

Use it for. Set Score to 0 when Play starts.

Link to this block

Add to Variable

Add to Variable block in Block Playground

Adds a numeric amount to a numeric variable. A negative amount subtracts. If values are text, it joins them as text.

Inputs and choices. Variable; amount or value.

Use it for. Add 1 to Score or add -1 to Lives.

Keep in mind. Keep the variable and amount numeric when you intend arithmetic.

Link to this block

Create a list

Create a list block in Block Playground

Opens the interface for creating a named list. Use Add Item in its display or the list command blocks to fill it.

Inputs and choices. A unique list name.

Use it for. Create an inventory, route, or collection of story choices.

Keep in mind. This is an interface button. Select the list by its name in the list command dropdowns.

Link to this block

List reporter

List reporter block in Block Playground

Returns the first item in the named list. It does not supply a whole list object to other blocks.

Inputs and choices. The named list created through the interface.

Use it for. Read the first item in an inventory or sequence.

Keep in mind. Use Value at Index for another item and List Length for the item count.

Link to this block

Add Value to List

Add Value to List block in Block Playground

Appends the supplied value to the end of the chosen list.

Inputs and choices. Value; list.

Use it for. Add a collected item to an inventory.

Link to this block

Remove Value from List

Remove Value from List block in Block Playground

Removes the first item whose text exactly matches the supplied value. Other matching items remain.

Inputs and choices. Value; list.

Use it for. Use one matching inventory item.

Link to this block

Remove Index from List

Remove Index from List block in Block Playground

Deletes the item at the selected position. Positions in a user-created list start at 0.

Inputs and choices. Index; list.

Use it for. Remove index 0 to remove the first item.

Keep in mind. An invalid index has no effect.

Link to this block

Clear List

Clear List block in Block Playground

Removes every item from the chosen list while keeping the list itself.

Inputs and choices. List.

Use it for. Reset collected items at the start of a level.

Link to this block

Insert Value at Index

Insert Value at Index block in Block Playground

Inserts a value at a position and moves later items along. User-created list positions start at 0.

Inputs and choices. Value; index; list.

Use it for. Insert a new first waypoint at index 0.

Keep in mind. Valid insertion indices run from 0 through the current length. Inserting at the length appends; other invalid indices have no effect.

Link to this block

Set Index of List to Value

Set Index of List to Value block in Block Playground

Replaces the item already stored at a chosen position. It does not insert a new item.

Inputs and choices. Index; list; replacement value.

Use it for. Change one step in a route.

Keep in mind. Valid indices run from 0 to length minus 1. An invalid index has no effect.

Link to this block

List Contains

List Contains block in Block Playground

Reports whether the chosen list includes an exact matching text value.

Inputs and choices. List; value.

Use it for. Check whether an inventory includes a key.

Link to this block

Value at Index

Value at Index block in Block Playground

Returns the item at the chosen position in a user-created list. The first item is index 0.

Inputs and choices. Index; list.

Use it for. Read the next waypoint or story choice.

Keep in mind. A negative or out-of-range index returns empty text.

Link to this block

Index of Value

Index of Value block in Block Playground

Reports the position of the first exact matching item in the chosen list.

Inputs and choices. Value; list.

Use it for. Find where a particular item appears.

Keep in mind. The first position is 0. A missing value returns -1; check that result before using it as another index.

Link to this block

List Length

List Length block in Block Playground

Returns the number of items in the chosen list.

Inputs and choices. List.

Use it for. Count collected items or check whether a list is empty.

Link to this block

Item from a built-in list

Item from a built-in list block in Block Playground

Returns a recognized content name from a built-in collection. These collections use index 1 for the first item.

Inputs and choices. Index; Actors, Animals, Vehicles, or Animations. The default index is 1.

Use it for. Read an Animals item and pass its name into Set Model by Name for an Animal slot.

Keep in mind. These indices differ from user-created list indices. An invalid built-in index returns empty text. Available names depend on the installed content.

Link to this block

Reusable functions

A function is a named sequence you can call from another stack. Create the function through the interface, attach commands below its definition, and use its matching call block wherever you want that sequence to run.

Create a function

Create a function block in Block Playground

Opens the function editor. Add a label for the function name and any input parameters you need.

Inputs and choices. Labels and optional named inputs.

Use it for. Create a reusable Reset Level sequence.

Keep in mind. This is an interface button. The pink examples below use the sample name Reset Level; each function displays its own label.

Link to this block

Define a function

Define a function block in Block Playground

Marks the definition of a reusable sequence. Attach the commands for that function below the definition block.

Inputs and choices. The label and optional parameters chosen in the function editor.

Use it for. Group scene placement, score reset, and camera setup into Reset Level.

Keep in mind. Named inputs become local parameters for the function. Keep its definition in the workspace so its call block can find it.

Link to this block

Call a function

Call a function block in Block Playground

Runs the sequence belonging to the matching function definition. Its inputs follow the parameters configured in that definition.

Inputs and choices. The matching function and any argument values it expects.

Use it for. Call Reset Level from multiple event stacks.

Keep in mind. When the sequence ends normally, the caller continues. Return stops the whole program, so do not use it as a function-local exit.

Link to this block

Ideas to try

Bring a few blocks together to give your next project a starting point.

Simple character controls

Under When Play Clicked, choose Animal 1, place it at Fair, and enable WASD Motion at speed 10. Set Camera Follow to 3D Follow for Animal 1. W and S move, A and D turn, Space jumps, Q descends, and E rises.

A nearby conversation

Use Ground Distance between Actor 1 and Animal 1 inside Compare Values with < 10. Use Wait Until to start one conversation on approach, or an If in a repeating monitor to react repeatedly. Add Wait to pace speech bubbles and avoid retriggering them every frame.

A simple chase

In a Repeat Until loop, Point Animal 2 toward Actor 1 in Ground mode and Move Animal 2 forward by a small amount. Add Wait 0. End the loop when Ground Distance is below the chosen arrival radius. This is transform movement, not obstacle avoidance.

Character cycling

Create a numeric CurrentAnimal variable starting at 1. Read Item from Built-in List using Animals and CurrentAnimal, then pass the returned name into Set Model by Name for an Animal slot. Increase the variable and keep the index within the available collection.

Timed activity

Set a counter, use Repeat or Repeat Until, and put a positive Wait between steps. Update a caption from the counter. Put unrelated ongoing activities in separate event stacks.

Rotating obstacles

Assign a model with configured rotating parts to a Vehicle slot. Use Set Vehicle Wheels with forward or backward and the desired speed. Use off to stop those parts.

Free camera exploration

Use WASD Camera to explore independently and right-drag to look around. Use Camera Follow to switch back to a chosen slot. Enable WASD Motion and WASD Camera share keyboard keys, so choose deliberately which object should respond.

Back to the top ↑