Hello, im not sure if this question is advanced or not but anyway is there a way to basically save an answer so that when u type in another answer it doesn't overwrite the answer? E.g
Starfleet admiral: What is your name?
_____________________________________
Hello
(Answer)
(View goes to bridge)
Hello captain
(Answer)
What should you do?
_________________________
Okay captain
(Answer to question 1)
we'll go to
(Answer to question 2)
Anyway to make the above work?
Offline
Use name as a variable and then do set name to answer so.
Ask whats your name?
set name to answer
Hello (name)
TO BRIDGE
Hello Captin (name)
and you would keep adding variables for the diffrent answers
Offline
Hello - I think I can help with this Just use this script:
Hope this helps! (This fits better in All About Scratch - but don't worry, I'll move it over there)
Offline
What I wanted to do was just keep your name, but not the commands. E.g
(Crew on bridge)
Welcome captain
(Answer)
What should we do?
_______________________------Dont wanna keep the answer to this
Okay captain.
Last edited by bigbeno37 (2010-06-01 05:04:13)
Offline
You'd just not use the variables to track the answer to things that you don't want to track. That way, the answer will only stay until another question is answered
Offline
"For all sprites" would be best if one sprite asks the question, then another one says "Hey [name], what should we do next?" (or something )
You can name it pretty much anything - so long as you can tell what it shows
Offline
Just go into the variables tab, and click the checkbox next to the variable's name to hide it. You can do that with any variable.
Last edited by hmnwilson (2010-06-01 17:16:32)
Offline
To add pictures to forum posts, check out this page.
As for the other thing, try experimenting with the broadcast functions
Offline
The pictures don't show up for me... I'll try to help anyway
But with broadcasting, it's a bit like one sprite (or the stage) telling another sprite (or the stage) to do something.
For example, if you wanted to make the background change to background two when a sprite switches to costume three, do something like this...
[blocks]
SPRITE:
<when green flag clicked>
<forever>
<if><( <costume#> <=> 3 )>
<broadcast[ background2
<end>
<end>
BACKGROUND:
<when I receive[ background2
<switch to costume[ background two
[/blocks]
I think that should help
Offline
Well since the broadcasting is there now basically i dont need anymore help. I may ask some questions. Anyway THANK YOU for answering my questions.
P.S. What is the limit amount of scripts you can make to publish your game to Scratch?
Offline
I've got another problem,
this is my script:
When I recieve Background 7(Thats what is transmitted)
Go to front
Show(Because it was hidden untill it recieved background 7)
Say congratulations on becoming a captain, captain
Say (Name of player) (Because I made a variable Name of Player)
Stop script.
The Sprite keeps repeating itself over and over. What do i do?
Offline
There's no limit to the amount of scripts - as long as it's under 10MB, it should upload fine
As for the script problem, I forgot to mention adding one thing into the script that's transmitting (my fault - sorry! )
<when green flag clicked>
<forever>
<if><( costume# <=> 3 )>
<broadcast[ background2
<wait until><< <not> <( costume# <=> 3 )> >>
<end>
<end>
[/blocks]
Offline
Just a suggestion mate, but if you upload (SHARE) your project, we can download it to see what you have, and try to make suggestions.
Offline
Hmm. Try going to the edit menu, and try compressing the sounds and images. If that still doesn't work, and you have a lot of sound, try deleting a few sounds.
Offline