Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:behaviors [2017/11/09 20:57]
4ian
gdevelop5:behaviors [2019/05/22 00:01] (current)
4ian
Line 3: Line 3:
 Behaviors add extra capabilities to objects. All objects can have one or more behaviors attached to it. Behaviors add extra capabilities to objects. All objects can have one or more behaviors attached to it.
  
-==== Add behavior to an object. ====+## Add behavior to an object
  
-To add a behavior to an object, you need to open the object ​properties by right clicking ​on the object ​and select Edit object from the list. +To add a behavior to an object, you need to open the object ​editor. In the [[gdevelop5:​interface:​scene-editor|scene editor]], *double click* ​on the object ​in the Objects ​list. You can also right click and choose "Edit Object"​.
-Next you should see the properties of the selected object which you need to ignore for now and select the Behaviors options on the top +
-{{ :​gdevelop5:​behaviors-tab.png?nolink }}+
  
-Here you will see a list of behaviors added to the object ​but, it is probably empty nowTo add a behavior ​to the object, ​click the Add behavior button +The Object Editor display the properties ​of the object. ​Click on the **Behaviors** tab to show the behaviors of the object. If your object does not have any behaviornothing will be displayed:
-{{ :gdevelop5:​add-behavior-button.png?​nolink }}+
  
-Next you should see a list of available behaviors +{{ :gdevelop5:behaviors-editor.png?​nolink ​|}}
-{{ :gdevelop5:add-behavior-list.png?nolink }}+
  
-You may need to scroll down to see them all. +Click on the "​+"​ button ​to add a new behavior. ​The list of available behaviors will be displayed:
-Finally, just click on a behavior ​to add the behavior ​to the object.+
  
-==== Learn more ====+{{ :​gdevelop5:​new-behavior-dialog.png?​nolink |}}
  
-You can learn more about each behavior by clicking ​on the following links:+Scroll to browse behaviors, and click on a behavior to add it to your object.
  
-  ​* [[gdevelop5:​behaviors:​physics|Physics behavior]]+### Find and install new behaviors 
 + 
 +If you click on the "​Search New Behaviors"​ tab, you'll see a list of community provided behaviors. They are identical to the behaviors provided with GDevelop, except that they have been built by users and shared with the community. 
 + 
 +{{ :​gdevelop5:​search-new-behaviors.png?​nolink |}} 
 + 
 +Search for behaviors and when you find an interesting one, click on it to show more details. Click on "​Install In Project"​ and the new behavior will be downloaded and added to the list of behaviors in the first tab! 
 + 
 +You can also [[gdevelop5:​behaviors:​events-based-behaviors|create your own behaviors]] in your game, to extend GDevelop features and make it easy to build complex objects for your game. 
 + 
 +## Learn more about behaviors 
 + 
 +You can learn more about each behavior that is provided with GDevelop: 
 + 
 +  * [[gdevelop5:​behaviors:​physics2|Physics 2 behavior]] 
 +  ​* [[gdevelop5:​behaviors:​physics|Old Physics behavior]] ​(deprecated,​ prefer using the new one)
   * [[gdevelop5:​behaviors:​pathfinding|Pathfinding]]   * [[gdevelop5:​behaviors:​pathfinding|Pathfinding]]
   * [[gdevelop5:​behaviors:​destroyoutside|Destroy outside screen]]   * [[gdevelop5:​behaviors:​destroyoutside|Destroy outside screen]]
Line 28: Line 38:
   * [[gdevelop5:​behaviors:​draggable|Draggable object]]   * [[gdevelop5:​behaviors:​draggable|Draggable object]]
   * [[gdevelop5:​behaviors:​topdown|Top-down movement]]   * [[gdevelop5:​behaviors:​topdown|Top-down movement]]
 +  * [[gdevelop5:​behaviors:​anchor|Anchor]]
 +  * [[gdevelop5:​all-features:​tween|Tween]]
 +  * [[gdevelop5:​behaviors:​events-based-behaviors|Make your custom behaviors]]