Create your own extensions (behaviors, conditions, actions or expressions)

You can also create, directly in your project, new behaviors, actions, conditions or expressions for your game. They can be created using events, just like in usual events sheets for scenes (or external events).

Some best practices are in vigor to keep the extensions as clean as possible, these practices are requirements to submit an extension to the community list in the engine.

Create a new extension

The first step is to create a new extension. This can be done in one click from the Project Manager, by clicking on the + button under Functions/Behaviors:

A new extension is added. It's recommended to immediately change the name to something that will hint at what the extension is providing. To do so, right click on the extension and choose Rename. Only alphanumeric characters and underscores are supported.

For example, the name can be “Flash” if you want to create an extension to make an object blink, or “TankEnemies” if you want to create behaviors that will control objects like if they are tanks on a battleground.

Finally, click on the extension to open it. You can now create new behaviors or functions (or both) in your extension.

Create new functions

Functions are either custom actions, conditions or expression that can be used in the events sheet. Read more about creating your functions here.

Create new behaviors

Custom behaviors are like usual behaviors that you can to an object. They can be used to control objects (moving them, changing their animation, text, size, etc…) according to some logic embedded in the behavior.

Read more about creating your custom behaviors here.

Share your extensions

If you've created an extension providing a useful, reusable behaviors or set of functions, you can share them with the community.