Game Development Reference
In-Depth Information
Then drag in a Display Text attribute, click the e to open up the expression editor,
and insert the following expression:
(game.Enemies Killed*10) + (game.Coins Collected*10) + 200
To do this, all you have to do is type in the brackets, then click the down arrow
button and select each attribute accordingly, then type in the *10 , end brackets,
and plus signs.
Then drag in a Change Attribute behavior, and change the score to the same
expression as the Display Text behavior, which would read:
game.Score +(( game.Enemies Killed *10)+( game.Coins Collected
*10)+200).
 
Search WWH ::




Custom Search