Adding Points to Game
Dec 31, 2015
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 using triggers to connect adding point to the score based on how many points they used in the question. However, the score doesn't update on the main game board page.
A side note, the "Play" button on the first slide keeps showing on the layer where the game instructions are, I'm not sure how I get this to stop showing up. I have hide the base layer but it still shows up.
I have attached the file so you may see what I am seeing.
Thanks!!!
14 Replies
Hi, Wanda -- Thanks so much for reaching out with your question! It looks like a similar question may have been asked over here in this thread so you may want to give the suggestions offered a shot. Also, for additional design input, you would be welcome to post your question over in our Building Better Courses forum, as well.
I'll take a look at your file to see if I am able to address the issue you are having with the Play button momentarily, and I will respond here with my findings as soon as possible.
Hi Wanda,
I had a look at your project file. I fixed them for you, and see below a few more tips!
I've attached the fixes, hope this helps, and a happy new year!
It looks like Bob beat me to it, Wanda! Please let us know if his suggestions will do the trick for what you have in mind or if you still need additional assistance. :)
Perfect thanks Bob and Christie!!
Now I have a new problem. I want a sound effect to play when the player clicks on the star to a question but it doesn't play. I even put it at the top of the triggers like Bob said to do. Help!!
The trigger on the star sends a message to the audio to play, then goes to the jump instruction and jumps before the audio can play.
Change the jump trigger to jump when media completes instead of when user clicks.
You may also want to crop the audio to get a snappier jump.
Hi Wanda,
Like Walt suggest, one of the solutions would be by jump to question slide when audio completes. a complete trigger would look like
The "if star xx is selected" part is important, without it, it would jump to pretty much all slides when the media completes(as it's only 1 media file we are dealing with).
If you made all the triggers for all the question slides like the above, the only thing that's left to do is giving each star a trigger to make the audio file play, on click
See attached for an example
Hello heroes! I hope somebody can help me. How do I create a bucket that fills more and more each time someone gets the answer correct , but if incorrect it will show however many levels they got till then?
Thanks!
This may give you some ideas. The sample does it with a combination of sliders and states, but you could either exclusively.
Hi Walt, Thanks so much for this great idea. If instead of a text box/button on the same slide, it's the incorrect or correct answer from questions in a quiz that triggers the slider, how would that work?
Here I tried to add a question to your example. But it's not modifying the slider. What am I doing wrong?
Two things.
When I created the sample, I put it all on one slide, and the only way to change the values was to click the buttons. To save time, I set the actions on the other triggers to fire when those buttons changed Max. That won't work if you change Max on another slide. So what I suggest is to change all those triggers to fire when the slide starts.
Then when I set the slide, I set it with an initial value of 1. So when you add 25 to it, it has a value of 26 and the slider moves, and the state changes only if it has a value of 25. You could write the conditions on the triggers to "between 25 and 50", but I just changed the initial value of the slider.
Try this.
Thanks so much, Walt!
You're welcome. PIAWYC (Pass it along when you can).