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:3-have-camera-follow-player [2017/09/28 23:26]
4ian
gdevelop5:tutorials:platform-game:3-have-camera-follow-player [2018/09/12 20:23] (current)
4ian
Line 3: Line 3:
 <​note>​This tutorial is part of the [[gdevelop5:​tutorials:​platform-game:​start|]] tutorial, but you can also re-use it for any other game!</​note>​ <​note>​This tutorial is part of the [[gdevelop5:​tutorials:​platform-game:​start|]] tutorial, but you can also re-use it for any other game!</​note>​
  
-For now it's hard to build a large level to explore because the player can quickly go outside of the screen!+For nowit's hard to build a large level to explore because the player can quickly go outside of the screen!
  
-Let's add another event to make the camera follow the player. There are multiple ​way to achieve this. The simplest is to add an event with no conditions and the action called `Center the camera on an object`:+Let's add another event to have the camera follow the player. There are multiple ​ways to achieve this. The simplest is to add an event with no conditions and the action called `Center the camera on an object`:
  
 {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-26_at_22.25.53.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-26_at_22.25.53.png?​nolink |}}
Line 19: Line 19:
  
 That was easy right? There are other actions that can be useful. For example, actions can be used to change the coordinates of the camera only on the X or Y axis. That was easy right? There are other actions that can be useful. For example, actions can be used to change the coordinates of the camera only on the X or Y axis.
-It can be useful for platform games where you can't go up/downbut just go through the level with a side scrolling.+It can be useful for platform games where you can't go up/down but just go through the level with a side scrolling.
  
 ## Next step: add a 'Jump through'​ platform ## Next step: add a 'Jump through'​ platform