A total newbie to director and need some help as i'm really
For part of my college work I am trying doing a True or False
game based on 10 questions but unsure how to script this, what game
involves is when a question has been answered correctly the user is
sent to a marker named "Right", showing an animation telling them
they have answered it correctly, if they have answered the question
incorrectly they get sent to another marker named "Wrong" again
showing an animation telling them they have answered incorrectly.
The way I have decided to do this is by importing the
questions from text file that hold 10 question, the current script
i have for Director to load the questions is.....
on mouseUp me
but wanting to randomize them.
I also have 2 buttons named True and False, and because 5
questions are true and 5 are false, the only code i have so far in
different scripts is
gQuestions = True
on mouseUp me
if gQuestions = True then
go to "Right"
go to "Wrong"
and dont know what code i needs to be added to determine
which correct answer goes to the correct marker
If you don't have a big library of questions that have to be
dynamically, I would suggest going with a less programatic
approach, in which each question is contained in a predefined
member displayed in a separate score marker.
Again the simplest least programatic approach would have the
the True False answer buttons assigned separately for each
question, that is in question number 3 you might have the
True button go
to the wrong marker.
You could avoid writing any lingo code by using the navigate
behavior from the library palette to access a marker from a
already have setup in the score.