Snap! Blocks
- Перечень всех блоков Snap! доступных в версии 8.0 - их можно использовать при описании процедур в вики, объединяя между собой
Blocks
Motion
: Moves the sprite along their direction.
: Turns the sprite counter-clockwise.
: Points the sprite towards a direction. 90 is right, 0 is up. Use "random" to point towards a random direction.
: Points the sprite towards another sprite. The block can also be used to make a sprite face toward a mouse pointer or the center.
: Jumps the sprite to a position.
: Jumps the sprite to another sprite, the mouse pointer, or the center. A two-input list can be also dropped into the slot for a select position.
: Smoothly (linearly) moves the sprite to a position.
: Moves the sprite horizontally. Positive to move right, positive to move left.
: Changes the sprite's horizontal position.
: Moves the sprite vertically. Positive to move up, negative to move down.
: Changes the sprite's vertical position.
: Makes the sprite face away from the edge if it's in proximity, otherwise does nothing.
: Reports the sprite's current position as a two-item list.
: Reports the current horizontal position.
: Reports the current vertical position.
: Reports the sprite's direction.
Looks
: Changes the sprite's costume.
: Cycles the sprite's costume to the next one. The turtle costume is never rolled over using this block.
: Reports the current costume number. 0 is the turtle costume, and other costumes start from 1 onwards.
: Shows a speech bubble above a sprite for an amount of time. If run on the stage, a pop-up will appear on the top-left.
: Shows a speech bubble without pausing the execution.
: Like the say blocks, but shows a thought bubble for an amount of time. Conversely, it cannot be run on the stage.
: Shows a thought bubble without pausing the execution.
: Reports a property of the costume.
: Creates a costume from a list.
: Intensifies or lessens an effect.
: Resets all the effect amounts to 0.
: Reports the current amount of an effect.
: Grows or shrinks the sprite. Note that it's not applied by a factor, 1.5 does not set the size to 150% from 100%, it sets it to 101.5%.
: Sets the size of the sprite.
: Reveals the sprite if the sprite is currently hidden.
: Hides the sprite and ceases all touch sensing (other sprites cannot sense if they're touching hidden sprites, and "when I am clicked" events are disabled as well).
: Reports true if the sprite is shown, false otherwise.
: Sends the sprite to either the front or back layer. Sending a sprite to front will also put it in front of UI elements, such as variable watchers, speech bubbles and ask dialogs.
: Send the sprite backwards by an amount of layers.
Sound
: Plays a sound with its own sample rate.
: Plays a sound and waits until the sound is done.
: Stops all the sounds that are currently being played.
: Plays a sound with a set sample rate.
: Reports a property of a sound.
: Creates a sound from the samples given.
: Delays execution for a varying amount of time based on the tempo.
: Sets the instrument to be played into one of the four waveforms: (1) sine, (2) square, (3) sawtooth, (4) triangle. The triangle is not to be confused with a percussion instrument of the same name.