Discuss Scratch

astroglider661
Scratcher
100+ posts

Glitchy Typewriter script.

In my game Magic Quest, once the wizard gives you the magic wand his text starts flashing while it's typing. It's like the text is disappearing and reappearing over and over again, and it's starting to hurt my eyes a little. Also this glitch occurs with the other characters with this typewriter script.

This glitch is especially annoying, as I've made 3 different forum posts on this one glitch and nobody knew how to fix it.

Can somebody please, please help me with this!?!?!?!?

THE GAME IS ON MY PROFILE.

Thank you.

when green flag clicked
forever
set [my legitness v] to [True]
end

Yup, you know it. I am the legitness.
Mittensbrother
Scratcher
100+ posts

Glitchy Typewriter script.

The speech bubble is flashing because of the forever loop you have on the ‘Wand’ sprite. The ‘Wizard’ sprite sets the ‘Wand’ variable to true, and then that forever loop on the ‘Wand’ starts executing move blocks which redraw the stage on every frame, giving you the flash.

Instead of putting that ‘Wand’ script in a forever loop, try using a ‘Wait Until ()’ block so it only runs when the avatar is moving.
astroglider661
Scratcher
100+ posts

Glitchy Typewriter script.

I can't figure out where to put the wait until block, or how to make the script detect that the player is moving. Already tried using a variable.

when green flag clicked
forever
set [my legitness v] to [True]
end

Yup, you know it. I am the legitness.
Mittensbrother
Scratcher
100+ posts

Glitchy Typewriter script.

Looks like you have this flashing speech bubble issue when the wand is active or if the player is walking during the wizard's dialogue, so maybe a better solution would be to use a var to disable any script that causes the flash until the wizard has finished his sentence.

Example for Avatar sprite:

forever
if <<<key [UP] pressed?>> and <[WizardDoneTalking] = [TRUE]>>then
MOVE
end
end

Powered by DjangoBB

Standard | Mobile