wait () seconds

From PenguinMod Wiki (Official)
Wait () seconds
Jump to navigation Jump to search

The wait () seconds block is a stack block in the Control category that waits for the specified amount of time in seconds. It originates from Scratch. The default value of this block is 1.

Workaround

This block can be worked around by using a say () for () seconds block with the 1st input empty and the 2nd input being the time wanted, a movement that doesn't change the sprite's direction or position at all but lasts (ex. a glide () secs to () or glide () secs to x: () y: () block), and similar workarounds:

say [] for (time::grey) seconds

glide (time::grey) secs to ([sprite wanted]::operators) //you can also duplicate this block from another sprite with the name of the sprite wanted selected as the dropdown

play sound (blank for time seconds v) until done //this would be a sound that is completely mute for the wanted amount of time

set audio source [source] in [group v] to use [url to blank sound]::#e256a1 //similar to the play sound workaround
(play v) audio source [source] in [group v]::#e256a1

However, the first workaround clears anything that is being said or thought. For the 2nd workaround, use the name of the sprite that is using the block.