Your global code is ok, so:
On Create Actor, put:
lives = 0;
loadLives();
test.textNumber = lives;
On Key Down (c):
lives++;
test.textNumber = lives;
On Key Down (x):
saveLives();
ExitGame();
Users browsing this forum: No registered users and 1 guest