PDA

View Full Version : Life simulation game


Tokidoki
06-16-2008, 03:45 PM
I'm trying to create a game where a question is asked and depending on the answer you selected (kinda like multiple choice) it will give you another question related to it.

if you dont get it,:confused: its kinda like a love simulation game
for example:
http://teens.aol.com/games/red-virtual-date

It a really simple idea, but I want to create a game that the questions and the answers to be reasonably updateable. my flash level is quiet low, Ive read a couple of books as well as watched tutorials on lynda.com but none help answer my dilema

help!
Thanks in advance!

rrh
06-16-2008, 04:04 PM
I think there's good tutorials on how to read in XML in Flash. That's a good way to structure a tree of questions, which might be what you're looking for.

Tokidoki
06-16-2008, 04:35 PM
I know how to read in the questions from xml to flash.. but the thing is.. I dunno how to make it so that if say choice "b" is made, and base on that,another question is pulled with a list of differnet possible answer to choose from.

its kinda like an rpg when you talk to someone but with different answers to choose from.

Please refer to this: http://teens.aol.com/games/red-virtual-date

thanks

rrh
06-16-2008, 07:53 PM
<question text="What is your favourite colour?">
<answer text="Red">
<question text="What kind of red?">
<answer text="Light red"></answer>
<answer text="Dark red"></answer>
</question>
</answer>
<answer text="Blue">
<question text="What kind of blue?">
<answer text="Light blue"></answer>
<answer text="Dark blue"></answer>
</question>
</answer>
</question>


Another way, less hierarchy:

<question id='1' text="What is your favourite colour?">
<answer text="Red" next='2' ></answer>
<answer text="Blue" next='3' ></answer>
</question>
<question text="What kind of red?" id='2' >
<answer text="Light red"></answer>
<answer text="Dark red"></answer>
</question>
<question text="What kind of blue?" id='3' >
<answer text="Light blue"></answer>
<answer text="Dark blue"></answer>
</question>