Computer Science, asked by Arunayadav, 6 months ago

2. The ask block is present in
blank block tab

Answers

Answered by rajsrestha5
0

Answer:

Just noticed this still has "needs-info" tag - is that really the case...?

As an extra note for this issue, MegaApuTurkUltra has discovered that an Ask box that's running in a broadcast receiver script does get removed when rebroadcasting (i.e. when the receiver script runs again, it terminates the running thread).

See this post for a simple script example:

Also, the "when this sprite clicked" and "when backdrop switches to" hat blocks behave in the same way (when they activate a second time, any ask box they're showing gets removed).

This provides a MUCH cleaner way to remove an ask box than the terrible "stop all" hack. :)

However, the above also suggests to me even more strongly that the fact that "stop other scripts" does NOT remove an ask box in another running thread (in the same sprite/clone) should be considered a bug. Similarly, deleting a clone that's showing an ask box.

(I'll have a look through the source at some point over the next couple of days, and have a go at fixing both of those...) [ Well, ummm... that was easy... ;) ]

Explanation:

Similar questions