exemple please
won make show variable on text
ex: bar=100 and colide enemig decresed bar
To make the variable's value show up in a text object:
Set text: "Bla bla" + str(global('VariableName'))
make sure you've added a Text Object to the layout
on the event sheet, use the Set Text action of the Text Object
for global variables:
Set Text:
Global('VariableName')
or for private variables:
MySprite('VariableName')
Develop games in your browser. Powerful, performant & highly capable.
nice ty