behaviors
In 3Engine, behaviors provide significant features to objects with just a few clicks.
For instance, behaviors can:
- Automatically remove objects from the scene when they go beyond the screen edges.
- Enable objects to move realistically by adhering to the laws of physics.
- Allow players to move an object using arrow keys.
Additionally, you have the option to customize behaviors to give your game a unique feel and use events to manipulate behaviors.
Adding a behavior to an object
Open your game in editor
- Log in to the 3Engine Editor.
- Navigate to the
Projects
section. - Select your game.
Open behaviors of an object
- Right-click an object in the 'Objects' panel.
- Select Edit behaviors. IMG : behaviors panel of an object
Add a behavior
- Click the 'Add a behavior to the object' button.
- Choose a behavior from the list. IMG : list of behaviors
- Customize the behavior. The available settings depend on the behavior.
- Click 'Apply'. IMG : add a behavior to an object and take a shot from behaviors panel
π Congratulations! You have successfully added a behavior to an object.