This is an archive. | |
See the new ClickWiki at https://clickwiki.github.io. This version is just an archive for the purposes of migrating content to the new structure. |
Create Object
Author | |
Status | Released |
Release Date | Unknown |
Available for | Not yet documented |
Supported Runtimes | |
License | Free |
Download | |
---|---|
Includes Examples | Yes |
Includes Help Files | Yes |
Links | Included by default. |
The Create New Objects object addresses issues related to sets of duplicate objects. On the outside, duplicate objects look identical and are difficult to tell apart. However, individual objects within a set of duplicates can be selected by their internal variable values or at random. A group of duplicates can be selected according to which zone of the frame the duplicates are in, or all duplicate objects can be selected. This object can be used to manipulate groups of duplicate objects or individual objects within a set of duplicates, independently from the rest of the set. For example, there may be many asteroids in the sky in a space game, but you may want to launch one particular asteroid. You can pick the specific asteroid using the Create New Objects object according to its alterable values, fixed value, or internal flags.
The Create object contains only two actions, but very important ones: they allow you to create other objects.
The Create New Objects object is a system object and is only available in the Event editor.
Contents
- 1 Conditions
- 2 Actions
- 3 Expressions
Conditions
Pick An Object At Random
The Pick An Object At Random condition picks an object at random in the frame. It then performs all of the actions on that event line to the selected object.
Pick A Random Object In A Zone
The Pick A Random Object In A Zone condition picks an object at random in a specific zone of the frame. It then performs all of the actions on that event line to the selected object.
Pick All Objects In A Zone
The Pick All Objects In A Zone condition picks all of the objects in a specific zone of the frame. It then performs all of the actions on that event line to the selected objects.
Pick All Objects On A Line
This condition asks for the coordinates of two points and draws a virtual line between them. It then picks all the objects that cross the line.
Pick Objects With Reference To Their Values
These conditions pick objects with reference to their internal values. The Pick Objects With Reference To Their Values conditions are
Alterable
Picks objects with reference to their alterable values. For example, you can pick all objects whose alterable value C equals 4.
Fixed
Picks objects with reference to their fixed value. The only method of comparison is to be equal to the fixed value.
Flags
Picks objects with reference to their internal flags. You can choose to pick all objects with specific flags on, or all objects with specific flags off.
Compare To Total Number Of Objects
The Compare To Total Number Of Objects condition compares the number of objects in the frame to a specific value.
Compare To Number Of Objects In a Zone
The Compare To Number Of Objects In A Zone condition compares the number of objects in a specific zone of the frame to a specific value.
Test For No Objects In A Zone
The Test For No Objects In A Zone condition tests for objects in a specific zone of the frame. This condition is satisfied if there are no objects in the zone.
Actions
Create object
This very important action creates an object of your choice in the frame during application runtime. You can position the new object at specific coordinates on the screen or relative to another object.
Create object by name
No info available, please add some!
Expressions
Total Number Of Objects
Total Objects
The Total Number Of Objects function retrieves the total number of objects in the frame.