Hi!
I'm making a game where the player chooses a character (sprite) from 26 options then writes a story about him/her. The "story" is structured as three questions from the chosen sprite and three answers from the player.
How can I store these answers then display that text at the end of the game?
Thanks in advance!
Offline
You could add the answers to a list... and then make a sprite say the contents of the list.
Offline
I would suggest storing each answer as an item in a list. That way you can go back later and use each sentence individually, or all as one. If you want to display all the answers at once, you can just use the say( ) block with the list reporter as an argument, and it will put all the items together automatically.
Offline
reillydow wrote:
Also, how can I get the 'answer' block to show only after the sprite asks the three questions...
Huh? What are you trying to show, the answer prompt box, or something else?
Offline
you could just have it set a variable to the answer, then show and hide that...
Offline
danwoodski wrote:
you could just have it set a variable to the answer, then show and hide that...
Basically this. There is a trickier approach that requires taking part of the background positioning it perfectly on the background, putting the answer viewer on top of it, and telling it to go to front when you click the green flag. Then, when you want to show the viewer, you just tell the sprite to hide. I did something like this once with a slightly transparent sprite and a variable once.
Offline