Conditions allow your games to react to events. Do you want to know whether a missile hits one of your aliens? Or when a baddie has moved off the screen? There’s a condition for all situations. Once Klik & Play has tested for a condition, it can then perform an appropriate action in your game.
What is a condition?
Klik & Play’s main task during a game is to keep checking a list of events, over and over again. When any of these events becomes “True”, the actions associated to it will be made to happen.
An event consists of one or more conditions. If an event has several conditions, then all the conditions have to be “True” before the actions can happen.
Here’s an event that checks for a character picking up an extra life bonus and ensuring that the total number of extra lives doesn’t run over 5:
| Event | Actions |
| [Romeo] Collides with [Extra Life] | Destroy Extra Life |
| Number of lives of [Player1] < 5 | Add 1 to number of Lives |
Types of Conditions
Special
Enables you to compare values or define limits during a game.
Game Storyboard Controls
Tests for the start and end of the game.
Timer
Allows for various tests based on the current time of the game.
New Objects
Pick out selected objects or compare how many objects there are in a
game.
Mouse and Keyboard
Checks for key pressing and mouse clicking.
Player 1,2,3,4
Test for joystick movements, the current score of the players and how
many lives a player has left. There will only be icons for players if objects
have been set-up to be moved by them.
Object conditions
Active objects, Question objects and counter objects all have their own set of conditions. You can test from the position of an active object to the answer of a question object.

