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:platformer:part-5 [2020/10/11 13:27]
davidturnbull
gdevelop5:tutorials:platformer:part-5 [2021/11/22 23:06] (current)
Line 11: Line 11:
 ## Series ## Series
  
-You are reading **Part 5** of the [[gdevelop5:tutorials:platformer:part-1|Platformer Tutorial]].+You are reading **Part 5** of the [[gdevelop5:tutorials:platformer:start|Platformer Tutorial]].
  
-1. [[gdevelop5:tutorials:platformer:part-1|Platformer Tutorial, Part 1]]+1. [[gdevelop5:tutorials:platformer:start|Platformer Tutorial, Part 1]]
 2. [[gdevelop5:tutorials:platformer:part-2|Platformer Tutorial, Part 2]] 2. [[gdevelop5:tutorials:platformer:part-2|Platformer Tutorial, Part 2]]
 3. [[gdevelop5:tutorials:platformer:part-3|Platformer Tutorial, Part 3]] 3. [[gdevelop5:tutorials:platformer:part-3|Platformer Tutorial, Part 3]]
Line 52: Line 52:
 ## Step 2: Keep track of the collected coins ## Step 2: Keep track of the collected coins
  
-Every time a user collects a coin, the game needs to keep track of the number of coins the player has collected. To do this, the game needs a *variable*.+Every time a user collects a coin, the game needs to keep track of the number of coins the player has collected. To do this, the game needs a [[gdevelop5:all-features:variables|variable]].
  
 A variable is a container that can store data. If you've ever done algebra, then you're familiar with variables, as letters like "x" and "y" are often used as variables. A variable is a container that can store data. If you've ever done algebra, then you're familiar with variables, as letters like "x" and "y" are often used as variables.
Line 91: Line 91:
 ### Update the "Score" object with the number of collected coins ### Update the "Score" object with the number of collected coins
  
-Before you can update the rendered text with the number of collected coins, it's important to have a broad understanding of *expressions*.+Before you can update the rendered text with the number of collected coins, it's important to have a broad understanding of [[gdevelop5:expressions|expressions]].
  
 In GDevelop, expressions are similar to spreadsheet formulas or functions in a programming language. You can pass a value into an expression and receive a value. In GDevelop, expressions are similar to spreadsheet formulas or functions in a programming language. You can pass a value into an expression and receive a value.
Line 122: Line 122:
  
 {{:gdevelop5:tutorials:platformer:05-06-score-preview.gif|}} {{:gdevelop5:tutorials:platformer:05-06-score-preview.gif|}}
 +
 +<note tip>You can find more //expressions// in the //expression editor// by clicking on the blue icon next to the value fields:
 +
 +{{ :gdevelop5:tutorials:platform-game:expression-icon.png?nolink |}}
 +
 +When you click the blue icon, you can search all the available expressions sorted into categories.
 +
 +{{ :gdevelop5:tutorials:platform-game:expression-editor.png?nolink |}}
 +</note>
  
 ### Move the text to a different layer ### Move the text to a different layer