Skip to lesson
LESSON 23 / 44 · Beginner

Events, conditions and actions

Build and read a rule using CuitPlay’s existing rule cards.

Open editor in a new tab ↗

Before you begin

Use a starter project and identify one object by name.

Build it step by step

  1. Open + Add Rule. Give the rule a descriptive name such as Spark on Interact; leave Enabled checked.

  2. Choose Input action, select Interact and choose Pressed. An event like this runs when the input occurs.

  3. Add a THEN action. Choose APPEARANCE → Play built-in effect, select the player and choose a small effect such as Spark.

  4. Compare with an Objects touch condition. IF runs on entry; WHILE runs while true. Use Only when… for extra property checks.

  5. Press Play and test the trigger. Return to Edit Rules to change it. Use the tabs to switch rules and their order controls when order matters.

TRY THIS IDEA

Practical example

WHEN Interact is Pressed → play Spark on the player. The trigger decides when; the action decides what happens.

Test your work

One press causes the intended effect, while unrelated keys do not.

If it does not work

If a rule does nothing, check Enabled, its object IDs, action selection and extra checks. Pressed and Released are events, not continuously held states.

MAKE IT YOUR OWN

Student challenge

Create a second rule using Released and compare its timing with Pressed.

Show the result to a partner. Explain what you changed and how you tested it.

Keep exploring