Differences

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

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:tutorials:how-to-move-objects [2020/01/11 01:45]
4ian [Make a cursor: change the position and use `MouseX()`;`MouseY()`]
gdevelop5:tutorials:how-to-move-objects [2020/01/11 02:00] (current)
4ian
Line 64: Line 64:
  
 ## Platformer behavior ## Platformer behavior
 +
 +If your object is a character in a platformer game, the [[gdevelop5:​behaviors:​platformer|platformer behavior]] will allow to use a ready-made platformer engine in your game. 
 +
 +* Add **Platformer Character** behavior to the player or objects that must move on platforms,
 +* Add **Platform** behavior to the objects that must act as platforms.
 +
 +You can edit the properties of the behaviors and use events to customize the way platformer characters work.
 +
 ## Physics engine ## Physics engine
-## Sine behavior+ 
 +If your objects must follow the law of physics, for example to simulate boxes falling and bouncing on the floor, consider using the [[gdevelop5:​behaviors:​physics2|Physics engine behavior]]. 
 + 
 +The Physics engine is *more complex* than forces and behaviors like the Platform behavior. If you're using it in your game, it's recommended to use it for all objects in your game. 
 + 
 +<note important>​Objects that have the Physics behavior are moved by the Physics engine. If you try to move them with forces or other actions not part of the Physics behavior, the Physics engine will struggle to keep the simulation realistic - and some "​glitches"​ can then be seen.</​note>​ 
 + 
 +## Sine (or ellipsis) movement behavior 
 + 
 +Sine (or ellipsis) movement ​ behavior is a behavior ​that you can [[gdevelop5:​extensions:​search|install in your game from extensions]]. 
 + 
 +After adding it to an object, you can set up the amplitude of the movement on the X and Y axis. This is useful to make objects always move in circle or following an ellipsis. 
 ## Forces and bounce behavior ## Forces and bounce behavior
 +
 +The **Bounce behavior** is a behavior that you can [[gdevelop5:​extensions:​search|install in your game from extensions]].
 +
 +After adding it to an object, add a condition to check if the object is in collision with an obstacle. Add an action to then make the object bounce from the obstacle.
 +
 +<​note>​This behavior is working with forces! Make your object move by adding a force to it. Then add the behavior and the action to make it bounce in case of collisions</​note>​
  
 ## Pathfinding:​ Find a path around obstacles and follow it ## Pathfinding:​ Find a path around obstacles and follow it