Skip to content
We're expanding our documentation. Not all guides are available yet. πŸ› οΈ
Guides
🎑 Behaviors

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

  1. Log in to the 3Engine Editor.
  2. Navigate to the Projects section.
  3. Select your game.

Open behaviors of an object

  1. Right-click an object in the 'Objects' panel.
  2. Select Edit behaviors. IMG : behaviors panel of an object

Add a behavior

  1. Click the 'Add a behavior to the object' button.
  2. Choose a behavior from the list. IMG : list of behaviors
  3. Customize the behavior. The available settings depend on the behavior.
  4. 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.