For the character
- If he touches the object, select the meteorite
-Action to the event-global varible-select lives-write (1)
- If he touches the object, select the coin
- Action for the event-global varible-select score-writing 1
And the action of the coin is destroyed
For texts
Score
create event 'Everi tisk'
-Action-score-set text-writing "score:" & score
lives
create event 'Everi tisk'
-Action-score-set text-writing "lives:" & lives
The system of play