TRIGGER |
Triggers like Bombs allow the user to change parts of the Level via a Scriptlet. Triggers are activated when Jumpman runs over them (or is within the bounding box). Triggers are completely invisible at run-time. When you create a Trigger, the following object graphic is drawn in the editor.. It can then be selected and moved around as per any other object. Shown is the non-selected and selected states of the object.
The Outline around the Trigger shows the Bounding area in which a test is made for Jumpman to hit before the Trigger is activated. There is no limit to the number of Triggers which can be created on each level.
When a Trigger is Selected, the Property Editor Window will bring up the following dialog;
It is important to note that changing the name of an object will not change any references to it via the scriptlets. Generally it would be unlikely that you would change the name of an object from the one generated by the program.
If Ticked, then the Trigger is Active at run time.. Active means that the Trigger will be tested to see if the Player has collided with it.
Defines the Scriptlet to Execute when the Trigger has been Triggered. For more information of Scriptlets please refer to the Bomb (link)
A Method is a function call which can be executed whilst a Property changes the state of a individual flag in the object.
There are currently no script accessible Methods for Triggers's.
Makes a Trigger Active or Not.. An Active Trigger tests against the Player hitting it. Valid Values are True and False. Script Example..
|