User Guide

Appendix 2. The qualifiers
Qualifiers are a way of reducing the complexity of the list of events of the frame. Imagine you
create a game in which the player must avoid a lot of different traps. Without qualifiers, you
would normally have to detect the collision between the player and trap for each trap: if you
have a lot of those, this could create a lot of event lines.
A qualifier is a symbol that you associate with an object. In our example, you would associate
the qualifier “Traps” to every one of the traps in your game. Once in the event editor, you
would see a new icon, the Traps qualifier. You could then replace all the collision lines by one
line, the detection of the collision between the player and the qualifier called Traps.
Qualifier can be used exactly as the object they replace: they can have conditions, actions
and functions. Actually there is no difference between an object and the qualifier that
represents it.
To add a qualifier to an object, you first need to display its properties in the property toolbar.
Just click on the object in the frame editor. Then choose the “Events” tab (the same than
the one with the behaviors).
Click on the edit button to open the Qualifier dialog box.
This box presents the qualifiers already
selected for the object. A click on the “Add”
button allows you to choose a qualifier
amongst the available list of qualifiers:
Conclusion: qualifiers can save you a lot of
time developing the application, reduce the
amount of code and make your list of
events easier to read.
67