Star System.....Image Change not working
Hey guys, how's it going?
Just ran into this issue in my almost completed game....
In the level lock/unlock box I have a rule that says:
If game.Time1 > 0 && Time1< 8 && game.levelcomplete=1(which means the level is completed) && self.numstars < or equal to 3:
Change Image to box with 3 stars..
This doesn't work for some reason.
Every time I complete the level in less than 8 seconds, the image remains the one with no stars, which is the default.
Thanks guys!
Just ran into this issue in my almost completed game....
In the level lock/unlock box I have a rule that says:
If game.Time1 > 0 && Time1< 8 && game.levelcomplete=1(which means the level is completed) && self.numstars < or equal to 3:
Change Image to box with 3 stars..
This doesn't work for some reason.
Every time I complete the level in less than 8 seconds, the image remains the one with no stars, which is the default.
Thanks guys!
Answers
http://gshelper.com/how-to-make-a-star-system-and-score-with-tables-gamesalad-tutorials-video/
The logic is all there (I think) for some reason it's just not executing.
I feel like it has something to do with the fact that not all of the things are true. I took away the "round complete" part of the rule, and it works now, but not fully.
Now this time, let's say I get 3 stars the first time...if I play again and get 1 star, the image changes to star instead of staying at 3.
Yes, I know what I'm doing, and the logic is correct, all of the correct statements are there.
So for 3 stars I would say change it only if numstars is less than or equal to 3....
Still not working, so not sure what's wrong. Maybe the way I'm thinking about it is wrong.
Do they need to be game attributes??
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@tshirtbooth was right about the self/game attributes.