18
« on: February 16, 2014, 07:31:02 pm »
Sorry to drag this all out, just wanted to be sure. Very odd!
Anyway, in your scene you can create a Number Attribute (under Attributes --> Getters).
When the scene is created, set your Score attribute to 0.
Whenever you have your 'score increasing' action happening (killing an enemy, etc.), Increment [score] by one.
Create a When Drawing event in your scene as well.
When Drawing:
Draw Text [score] at (x,y)
The great thing is that you can drag the tiny block for your score attribute directly into your Draw Text block. It will be a blue block under Attributes -->Getters.
Also notable is that you can draw shapes to lay behind your text and make it stand out from the background. Just play around with that and make sure your (x,y) is right.