Object effects
You can add extra visual effects to objects. For example, you could use the "Outline" effect to make an object to pick up or to use more visible. You can also use more advanced visual effects that change the shape of the object or create interesting visual results.
This game screenshot shows multiple objects with a Outline effect (giving the level a cartoon aesthetic), and the coins with a Glow effect.
Add an effect to an object
Double click on an instance of an object on the scene editor (or in the list of objects) to edit it. Choose the Effects tab.
Click Add a 2D/3D effect. A new effect called “Effect” is created. This name will be useful later for modifying the parameters of the effect during the game.
Choose the type of the effect. Click on the selector and choose one.
The window now shows the parameters for the effect - these parameters depends on the effect type that was chosen.
You can let the default parameters or change them now.
Try the game with the effect
Launch a preview to see the effect applied. The effect is applied on all the instances of the object you edited.
When a preview is running, you can see the changes you've made in real time by clicking on Apply changes to preview. Read more about Live Previews here.
Change effect parameters during the game
Using events, you can manipulate the parameters during the game. It can be useful for different situations, for example animating or activating an effect only when an object is hit, firing bullets, moving, etc...
First, check out the name of the effect and the name of the parameter to change in the Effects tab. For this, activate the display of properties names:
In this example, the Dark Night effect is called "Effect" and has two parameters "intensity" and "opacity":
You can then search for an action to modify an effect parameter — for example "Set effect number parameter" (for numeric values like intensity or radius), "Set effect string parameter" (for colors or text values), or "Enable effect property" (for boolean on/off properties).
Select the object, then enter:
- The name of the effect, for example
"Effect". - The name of the parameter, for example
"intensity"or"opacity". - The new value for the parameter.
Danger
Effect and parameter names are case sensitive. In particular, parameter names are lowercased. Be sure to double-check the exact names shown in the Effects tab.
You can also use the "Enable/Disable effect" action to toggle an entire effect on or off without deleting it — useful for temporarily activating effects like a hit flash or a shield glow.