Forum Discussion
WandaJenkins
10 years agoCommunity Member
Adding Points to Game
I am trying to add a certain amount of points to my game for the player to view as they go along. I am not sure what I am doing wrong. I set up the "Score" variable (as a number variable) and I am...
BobKaart
10 years agoCommunity Member
Hi Wanda,
I had a look at your project file. I fixed them for you, and see below a few more tips!
- You were super close to the solution, it was just a matter of putting the "adjust variable score + 3" trigger in the right order. The way triggers work, is that they will execute the top one on the list first, then work its way down. So if you have, "hide layer" or "jump to other slide" triggers executing before your variable score trigger, chances are, that it won't work! Solution: Put the score trigger on the very top!
- Play button: I noticed you used a trigger to let the program know that if a user hover's their mouse over the play button, that it goes to the "Hover" state. Articulate has a build in Hover state which does this behavior by default, so there is no need to make triggers for them. Now because you had the mouse over trigger on your additional layer as well, it triggered the play button to play the hover button, even though it was hidden underneath, on the base layer. This caused it to show on top of your "Start Game" button.
- Last thing, I have not edited these out, of my example below, but i noticed on the correct/incorrect layers that you have a "Jump to next slide" trigger, additionally to a specific "jump to gameboardxx" trigger. As you're using direct linking, i'd suggest you take out the jump to next slide trigger, to decrease to chance of errors happening.
I've attached the fixes, hope this helps, and a happy new year!
Related Content
- 8 months ago
- 8 months ago
- 8 months ago