Spa:Cambiar x por () (bloque)

El bloque Cambiar x por  es un Bloque de movimiento y un Spa:Bloque apilableBloque apilable. El bloque mueve la posición X del sprite Centro del disfraz por la cantidad especificada. the  El eje X puede variar entre -240 y 240.

Ejemplos de uso
when gf clicked forever if  change x by (-5) end if  change x by (5) when gf clicked go to x (-240) y (([sin v] of (-240)) * (100)) //240 is the leftmost position of the stage clear //clears a previously drawn wave, if it exists pen down //draws the first point of the wave repeat (480) //the width of the stage is 480 x coordinates pen up //so the movement to the next position is not interfered with an unintended, out-of-place line change x by (1) //the use of the block set y to (([sin v] of (x position)) * (100)) //the result is multiplied by "100" to expand the amplitude for visual preference pen down //creates the mark
 * Normalmente en juegos, el jugador controla un objeto y lo va moviendo el bloque Cambiar x por   (y el bloque Cambiar y por  ) Son muy comunes en este evento.
 * This block can also be used to move a sprite which creates a sine wave (see Trigonometry) along the x axis. An example script of this situation is:

Workaround
This block can be replicated with either of the following codes:

set x to ((x position) + (change)) go to x: ((x position) + (change)) y: (y position)