tigerwqp.blogg.se

Tell me why im waiting for someone on scratch
Tell me why im waiting for someone on scratch






tell me why im waiting for someone on scratch

When I receive // This will delete all clones. An example of when one might want to cancel the text box is if an answer is not received in a certain amount of time, or if a cancel button is pressed.Ĭlone Method define ask (question) // question is asked with this custom blockīroadcast (stop message v) // question is stopped with this broadcast To cancel the text box that appears once this block is activated, one must stop the script which ran this block. Repeat (length of ) // compile list into a single string Wait until // this will confirm the user is done inputting Text input can be retrieved in correct order and speed by using this method.ĭelete (length of ) of // backspace function The list "answer" will replace the answer block. Insert (letter (letter #) of (all letters)) at (position) of

tell me why im waiting for someone on scratch

If and > then // the tilde serves as the backspace key, since it is impossible to let Scratch detect if the backspace key has been pressedĭefine detect keys // run without screen refresh Set to // where to insert the next letter This block can be somewhat replicated with the following code: Move (answer) steps Workarounds Main article: List of Block Workarounds Receiving input - asking the user to give a command.Setting preferences - coordinates, color, and so onĪsk and wait.Chatbots - receiving information from the user.Some common uses for the Ask () and Wait block: When the sprite is hidden, or if the block is used in the stage, the question pops up above the input box.Īs this block allows users to input any text they want, it is widely used when a user must communicate with the project.

tell me why im waiting for someone on scratch

If this block is used in a sprite that is showing, the question asked will pop up in a speech bubble, similar to the Say () (block).








Tell me why im waiting for someone on scratch