So, when I run an ask block for one sprite, it runs correctly, the question is posed in a SAY bubble, the answer is handled by an if/else block and the input window goes away when an answer is entered. Now, if I have the same sprite ask a SECOND question, the second question runs, only the SAY bubble does not appear, the ask text appears in the ask window, the way it does when you run ask on the stage. And inputting an answer causes the subsequent if/else blocks to run, only the window itself doesn't close. Ideas?
Offline
if the sprite is hidden, it prints the text in the input window. if the sprite is shown, it puts the text in a say bubble.
Offline
Sprite not hidden. Nothing changes about the sprite. First click on the sprite initiates the first ask/response block (which includes several ask/answer trees, all of which work fine). Second click initiates the second ask/response block, of which none of the ask/answer trees work correctly. Same sprite, no change, but the say bubble does not appear, and the input window does not vanish when an answer is input into it.
Offline
Weird thing - the ask block occurs inside an if block. If I move it just outside the if block, same problem. If it move it so that it's the FIRST statement that executes in the entire block then it and all the subsequent ask blocks function correctly.
Offline
Wait, no scratch that. Only the first ask block functions correctly. The rest are still busted. This is driving me crazy. Is there anything else that would cause the ask text to appear in the ask window rather than in a speech bubble?
Offline
http://img.photobucket.com/albums/v241/fordmadoxfraud/problemasks.gif
Can't post images apparently because I'm a new Scratcher. Don't want to share the project as it's probably in violation of both the content and copyright guidelines.
Offline
Also waitaminute. That image is tiny as hell. What is that "save picture of scripts" function even good for?
Offline
Anyway, something is totally [removed by moderator -please keep language as clean as possibly, abbreviating doesn't mean we don't know what it means!]. So, I noticed that when I changed the text of the problem ask block, it didn't display as changed? As a test I took the ask block out of the dialogue block AND IT STILL POPS UP in the space it once was. As of right now, there is NO ask block in my code, and an ask prompt keeps popping up. I've already saved and restarted Scratch. The code looks like this:
when I receive [event] say [this thing] if <(answer) = [yes]> say [second thing] end say[third thing]After "this thing" is said by the sprite an ask box still pops up now, despite there no longer even being an ask block here.
Last edited by sparks (2012-12-02 16:11:33)
Offline
I placed another ask block directly below the "when I receive" block and that seemed to reset it. But back to square one on the problem. All the previous ask blocks that trigger on other events (they are sequential) work fine, but when it gets to this event, it chokes, and will not show a talk box. HOWEVER, it's only broken when I let it run in the sequence it's supposed to run in. If I run it by clicking on the block, it works fine.
Offline
Yeah, I don't know what's going on but I think I broke my project. Ask blocks keep appearing in the middle of dialogue boxes where no ask boxes are present, and it seems like the ask text is getting STUCK in the ask block. Because it keeps showing that text even after I've deleted the ask block that has that text in it.
Offline
Yes, it's not a violation of anything. And, please, don't swear, ofr say anything swear-like.
Offline
The game is made with copyrighted sprites.
Offline
fordmadoxfraud wrote:
The game is made with copyrighted sprites.
This shouldnt matter, as it is for educational purposes.
Please keep the language down. We as a community dont like references to words either.
Offline