This content has been marked as final. Show 3 replies
To keep track of the user's score you just need to declare a variable to hold that value, probably a global variable, and then change that variable's value based on a set of rules that you define.
To display the result of the change in the score, you need to convert the value of the variable to something that the user can use. In your case it looks like you want to show a value in pounds.
One way to achieve this is to declare a global variable at the start of your movie, and then give it an inital value in a function at the start of the movie. Something like this in a movie script window would work:
score = 0
Then you will need to set up a method to record the user's choice for each question. In that method, probably a behavior attached to the answer selectors, you can change the value of the global variable.
Then you will need a text or field member instance on the stage to show the score. You can show the result something like this:
member("show score").text = "£" & score
Be sure to declare the global at every point where you want to use it.