I'm trying to make a Pokemon battle using my own sprites.
It first asks the player what attack they want to use.
It stores it in answer (obviously), and it stores "answer" in "attack".
By the time it's the player's turn again (after the computer goes), since answer is the same, regardless of the fact that I set "attack" to "null", it goes on and sets attack to the same thing as you first entered.
Is there any way to clear the "answer" sensing block?
Offline
V4LOVER, this is not a bug with Scratch or the Website. If you want help with programming, try the All about Scratch forum instead.
Offline
I bet you just need to move where you are using Answer. Since I can't see your code, I'm not positive, but I expect that you are setting Attack to Answer somewhere close to where you are using Attack (and inside a loop), instead of close to where you are Asking for the Answer.
Generally for this sort of thing, where you probably have multiple questions to Ask, it is best to Ask and then immediately use Answer once to store the answer in another variable, then never use Answer again until you Ask another question. This is specially true if you have multiple sprites asking questions independently.
regards, Fyxen
Offline
Do this when it asks what attack you want:
[blocks]
<when green flag clicked>
<set{ attack }to( nothing
[/blocks]
Then you can ask the question and do the rest of it.
Offline