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:platform-game:4-add-backgrounds-objects [2018/09/12 01:29]
ddabrahim fixed some grammar errors
gdevelop5:tutorials:platform-game:4-add-backgrounds-objects [2018/09/12 20:26] (current)
4ian
Line 7: Line 7:
 ## Create objects ## Create objects
  
-Adding ​some objects in the background is really easy: Just add some sprites with the images you wish and put them on the scene.+Adding objects in the background is really easy: just add some sprites with the images you wish and put them on the scene.
  
 For example, create a `Sprite` object, add an animation and add the `bush` image: For example, create a `Sprite` object, add an animation and add the `bush` image:
Line 17: Line 17:
 {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.46.01.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.46.01.png?​nolink |}}
  
-## Put objects on the scene and change z-order+## Put objects on the scene and change ​the z-order
  
 If you add objects on the scene, you can see that the player is displayed behind them: If you add objects on the scene, you can see that the player is displayed behind them:
Line 23: Line 23:
 {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.52.10.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.52.10.png?​nolink |}}
  
-Every instance on the scene has a property which is called **z order**. It's a number and objects with a higher Z-order will be displayed in front of objects with a Z-order that is lower. Z-order can be any number, and it can be negative too.+Every instance on the scene has a property which is called **z-order**. It's a number and objects with a higher Z-order will be displayed in front of objects with a Z-order that is lower. Z-order can be any number, and it can be negative too.
  
-Here, you can change the Z-order of bushes and clouds to set them negative, so that the player character (with a Z-order that should be 1) is displayed in front of them. To do this, select the instances on the scene (you can keep pressing SHIFT on your keyboard to select more than one object):+Here, you can change the Z-order of bushes and clouds to set them negative, so that the player character (with a Z-order that should be 1) is displayed in front of them. To do this, select the instances on the scene. You can keep pressing SHIFT on your keyboard to select more than one object:
  
 {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.59.47.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_22.59.47.png?​nolink |}}
Line 37: Line 37:
 {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_23.01.44.png?​nolink |}} {{ :​gdevelop5:​tutorials:​platform-game:​screen_shot_2017-09-27_at_23.01.44.png?​nolink |}}
  
-You can launch ​a preview to check that everything is working well!+Launch ​a preview to check that everything is working well!
  
 ## Next step: add coins and display how many have been collected ## Next step: add coins and display how many have been collected