User Guide
Type the text of your comment in the edit zone, choose the font with the “Choose font”
button, the colors with the appropriate buttons, and click on OK. Here s how this comment is
displayed in the event editor:
As you can see comments are very important to make a code clearer. Do not worry,
comments do not take any time during the execution of the application as they are totally
skipped by the runtime engine. Comments are extremely useful if multiple developers are
sharing files. (Also many Clickteam developers use the background color as an indication of
the complexity of a specific event.)
• Insert / A new event. Will open the object condition dialog for you to choose a new
condition, and automatically create a new event with this condition.
• Insert / A group of events. Group of events can be a very handy way to simplify and
organise your code. Basically a group is a set of events that have some level of commonality
and are grouped together. Groups can be deactivated, in this case ALL the events within
the group are ignored. You can use an action to reactivate the entire group all at once.
Furthermore, groups can be closed by double clicking on them: it instantly hides all the
events in a single line (the title of the group).
To create a new group, you have to enter its name in the group definition dialog:
Enter the title of your group in the proper field. You
can decide to protect the group with a password:
enter the password in the two password fields.
Your group will be able to be closed, but to open
it you would need the password. Use this option
if you distribute your code for others to look at but
do not want other people’s eyes to peek inside this
particular group of events. Warning, if you loose
your password, there is no way to open the groups!
So you should restrain from password-protecting
your code until the end of the development.
Active when frame starts: if this box is checked, the group will be activated when the frame
starts, if not, it will be inactivated. Deactivated groups are greyed out in the event editor.
49