Strange Scoring Issue
I'm trying to get my level to spawn a level complete graphic when a certain score is reached.
The score is stored and displays fine, but I can't get the level complete graphic to spawn correctly. My score is stored as a real value because I need it to include decimals.
Example: I set the winner graphic to spawn when the score attribute = .05, but when I start the scene the level complete graphic spawns immediately.
What am I doing wrong?
The score is stored and displays fine, but I can't get the level complete graphic to spawn correctly. My score is stored as a real value because I need it to include decimals.
Example: I set the winner graphic to spawn when the score attribute = .05, but when I start the scene the level complete graphic spawns immediately.
What am I doing wrong?
Best Answer
-
UtopianGames Posts: 5,692
To save you writing lots of rules for the score you could also make an integer scoreTarget and do if score= or >scoreTarget change attribute levelComplete=True then when you exit the scene increase the scoreTarget by 5 or whatever.
Darren.
GS TEMPLATES
DBA RESOURCE CENTRE
Answers
Example:
if(score == 0.05){
graphic.positionX = 480;
}else{
graphic.positionX = -20;
}