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:tutorials:platform-game:6-add-enemies [2018/12/11 09:49]
4ian
gdevelop5:tutorials:platform-game:6-add-enemies [2019/09/03 16:00]
bouh
Line 33: Line 33:
 {{ :​gdevelop5:​tutorials:​platform-game:​gd5_platformertutorial_slimedirection.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​gd5_platformertutorial_slimedirection.png?​nolink |}}
  
-The idea is tjhat, if the slime collides with the object called `left`, we set its direction to move to the left. And if it is colliding with the object called right, we set its direction to move right.+The idea is that, if the slime collides with the object called `left`, we set its direction to move to the left. And if it is colliding with the object called right, we set its direction to move right.
  
 First, we are going to create an object variable called `direction` with the default value "​left"​. We are going to use this variable to change the direction. First, we are going to create an object variable called `direction` with the default value "​left"​. We are going to use this variable to change the direction.
Line 65: Line 65:
 The window should look like this: The window should look like this:
  
-{{ :​gdevelop5:​tutorials:​platform-game:​slime-move-left.png?​nolink&​600 ​|}}+{{ :​gdevelop5:​tutorials:​platform-game:​slime-move-left.png?​nolink |}}
  
 Press OK to add the condition to the event. ​ Press OK to add the condition to the event. ​