Animation Blocks

Advanced Animation

{"func":"blockAnimationSimpleEffectBy"}

Animate Effect By

"Animate Effect By" performs an effect animation relative to the current effect value.

Parameters:

Effect: This is the effect to animate.

Value: This is the amount of the effect to animate by.

Time: This is the time it takes to perform the effect.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleEffectTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectBy","values":[{"type":"choice","value":"ghost"},{"type":"number","value":"25"},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleEffectTo"}

Animate Effect To

"Animate Effect By" performs an effect animation.

Parameters:

Effect: This is the effect to animate.

Value: This is the amount of the effect to animate to.

Time: This is the time it takes to perform the effect.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleEffectBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectTo","values":[{"type":"choice","value":"color"},{"type":"number","value":1},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierBy"}

Animar curva Bézier en

Anima una curva Bézier a la nueva posición.

Parameters:

x, y: posición final en relación con la posición actual del actor.

cx1, cy1: primer punto de control de la curva.

cx2, cy2: segundo punto de control de la curva.

tiempo: el tiempo para animar la curva.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleBezierTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierBy","values":[{"type":"number","value":100},{"type":"number","value":0},{"type":"number","value":-5},{"type":"number","value":75},{"type":"number","value":40},{"type":"number","value":150},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierTo"}

animar curva Bézier hasta

Anima una curva Bézier hasta la posición final.

Parameters:

x,y: posición final.

cx1, cy1: primer punto de control de la curva.

cx2, cy2: segundo punto de control de la curva.

tiempo: el tiempo para animar la curva.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleBezierBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierTo","values":[{"type":"number","value":50},{"type":"number","value":-150},{"type":"number","value":-25},{"type":"number","value":-75},{"type":"number","value":0},{"type":"number","value":0},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleEffectBy"}

Cambiar efecto en

Realiza la animación de un efecto en relación con el valor actual del efecto.

Parameters:

efecto: el efecto a animar.

valor: la cantidad de efecto que se debe animar.

tiempo: la duración de la animación del cambio.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleEffectTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectBy","values":[{"type":"choice","value":"ghost"},{"type":"number","value":"25"},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleEffectTo"}

Cambiar efecto hasta

Realiza la animación de un efecto.

Parameters:

efecto: el efecto a animar.

valor: la cantidad de efecto hasta la que se debe animar.

tiempo: la duración de la animación del efecto.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleEffectBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectTo","values":[{"type":"choice","value":"color"},{"type":"number","value":1},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveBy"}

Animate Move By

"Animate Move By" moves this Actor by the specified X and Y in the given time.

Parameters:

X: This is how far to move in the X direction.

Y: This is how far to move in the Y direction.

Time: This is the time it takes to move to the specified position.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleMoveTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveBy","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveTo"}

Animate Move To

"Animate Move To" moves this Actor to the specified X and Y in the given time.

Parameters:

X: This is the X position to move to.

Y: This is the Y position to move to.

Time: This is the time it takes to move to the specified position.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleMoveBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleBy"}

Animate Scaling By

"Animate Scaling By" scales this Actor by the specified value in the given time.

Parameters:

Scale: This is the amount to scale by.

Time: This is the time it takes to scale by the specified amount.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleScaleTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleBy","values":[{"type":"number","value":50},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleTo"}

Animate Scaling To

"Animate Scaling To" scales this Actor to the specified value in the given time.

Parameters:

Scale: This is the amount to scale to.

Time: This is the time it takes to scale to the specified size.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleScaleBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleTo","values":[{"type":"number","value":100},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateBy"}

Animate Rotation By

"Animate Rotation By" animates the rotation of the Actor by the specified angle.

Parameters:

Angle: This is the amount to rotate by. Use a negative value to rotate the other direction.

Time: This is the time it takes to rotate to the specified angle.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleRotateTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateBy","values":[{"type":"number","value":45},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateTo"}

Animate Rotation To

"Animate Rotation To" animates the rotation of the Actor to the specified angle.

Parameters:

Angle: This is the angle to rotate to.

Time: This is the time it takes to rotate to the specified angle.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleRotateBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateTo","values":[{"type":"number","value":90},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierBy"}

Animate Bezier Curve By

"Animate Bezier Curve By" animates a bezier curve to the new position.

Parameters:

X, Y: This is the ending position relative to the Actor's current position.

CX1, CY1: This is the first control point of the curve.

CX2, CY2: This is the second control point of the curve.

Time: This is the time it takes to perform the curve.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleBezierTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierBy","values":[{"type":"number","value":100},{"type":"number","value":0},{"type":"number","value":-5},{"type":"number","value":75},{"type":"number","value":40},{"type":"number","value":150},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierTo"}

Animate Bezier Curve To

"Animate Bezier Curve By" animates a bezier curve to the end position.

Parameters:

X, Y: This is the ending position.

CX1, CY1: This is the first control point of the curve.

CX2, CY2: This is the second control point of the curve.

Time: This is the time it takes to perform the curve.

Name: This is what to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleBezierBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierTo","values":[{"type":"number","value":50},{"type":"number","value":-150},{"type":"number","value":-25},{"type":"number","value":-75},{"type":"number","value":0},{"type":"number","value":0},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveBy"}

Moverse en

Se mueve la cantidad indicada para las coordenadas x e y durante el tiempo especificado.

Parameters:

x,y: la cantidad que debe variar la posición en las coordenadas x e y.

tiempo: el tiempo para moverse a la posición indicada.

nombre: el nombre de esta animación.

Related Blocks:
{"func":"blockAnimationSimpleMoveTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveBy","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveTo"}

moverse hasta

Se mueve hasta las coordenadas x e y especificadas, en el tiempo indicado.

Parameters:

x,y: la posición a la que debe moverse.

tiempo: el tiempo para moverse hasta la posición indicada.

nombre: el nombre de esta animación.

Related Blocks:
{"func":"blockAnimationSimpleMoveBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleBy"}

Cambiar tamaño en

Cambia el tamaño en el porcentaje especificado, durante el tiempo indicado.

Parameters:

escala: el porcentaje en que se debe cambiar de tamaño.

tiempo: el tiempo que durará el cambio de tamaño.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleScaleTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleBy","values":[{"type":"number","value":50},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleTo"}

Cambiar tamaño a

Cambia de tamaño hasta el valor especificado, dentro del tiempo indicado.

Parameters:

escala: el porcentaje hasta el que debe cambiar de tamaño.

tiempo: el tiempo que durará el cambio de tamaño.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleScaleBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleTo","values":[{"type":"number","value":100},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateBy"}

girar en

Muestra una animación de rotación en el ángulo especificado.

Parameters:

ángulo: la cantidad que debe rotar. Utiliza valores negativos para rotar en la dirección opuesta.

tiempo: el tiempo que durará la rotación hasta el ángulo especificado.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleRotateTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateBy","values":[{"type":"number","value":45},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateTo"}

girar hasta

Muestra una animación de rotación hasta el ángulo especificado.

Parameters:

ángulo: el ángulo hasta el que se debe rotar. Utiliza valores negativos para rotar en la dirección opuesta.

tiempo: el tiempo para girar hasta el ángulo especificado.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleRotateBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateTo","values":[{"type":"number","value":90},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveTo"}

moverse hasta

Se mueve hasta las coordenadas x e y especificadas, en el tiempo indicado.

Parameters:

x,y: la posición a la que debe moverse.

tiempo: el tiempo para moverse hasta la posición indicada.

nombre: el nombre de esta animación.

Related Blocks:
{"func":"blockAnimationSimpleMoveBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleBy"}

Cambiar tamaño en

Cambia el tamaño en el porcentaje especificado, durante el tiempo indicado.

Parameters:

escala: el porcentaje en que se debe cambiar de tamaño.

tiempo: el tiempo que durará el cambio de tamaño.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleScaleTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleBy","values":[{"type":"number","value":50},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleScaleTo"}

Cambiar tamaño a

Cambia de tamaño hasta el valor especificado, dentro del tiempo indicado.

Parameters:

escala: el porcentaje hasta el que debe cambiar de tamaño.

tiempo: el tiempo que durará el cambio de tamaño.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleScaleBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"grow"}],"next":{"func":"blockAnimationSimpleScaleTo","values":[{"type":"number","value":100},{"type":"number","value":"1"},{"type":"string","value":"grow"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"grow"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateBy"}

girar en

Muestra una animación de rotación en el ángulo especificado.

Parameters:

ángulo: la cantidad que debe rotar. Utiliza valores negativos para rotar en la dirección opuesta.

tiempo: el tiempo que durará la rotación hasta el ángulo especificado.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleRotateTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateBy","values":[{"type":"number","value":45},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleRotateTo"}

girar hasta

Muestra una animación de rotación hasta el ángulo especificado.

Parameters:

ángulo: el ángulo hasta el que se debe rotar. Utiliza valores negativos para rotar en la dirección opuesta.

tiempo: el tiempo para girar hasta el ángulo especificado.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleRotateBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Idle"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationSimpleRotateTo","values":[{"type":"number","value":90},{"type":"number","value":"1"},{"type":"string","value":"turn"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"turn"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierTo"}

animar curva Bézier hasta

Anima una curva Bézier hasta la posición final.

Parameters:

x,y: posición final.

cx1, cy1: primer punto de control de la curva.

cx2, cy2: segundo punto de control de la curva.

tiempo: el tiempo para animar la curva.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleBezierBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierTo","values":[{"type":"number","value":50},{"type":"number","value":-150},{"type":"number","value":-25},{"type":"number","value":-75},{"type":"number","value":0},{"type":"number","value":0},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleBezierBy"}

Animar curva Bézier en

Anima una curva Bézier a la nueva posición.

Parameters:

x, y: posición final en relación con la posición actual del actor.

cx1, cy1: primer punto de control de la curva.

cx2, cy2: segundo punto de control de la curva.

tiempo: el tiempo para animar la curva.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleBezierTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"jump"}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":-50},{"type":"number","value":-150}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Jump"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleBezierBy","values":[{"type":"number","value":100},{"type":"number","value":0},{"type":"number","value":-5},{"type":"number","value":75},{"type":"number","value":40},{"type":"number","value":150},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"jump"}]}}}}} Add to my Backpack


{"func":"blockAnimationSimpleEffectTo"}

Cambiar efecto hasta

Realiza la animación de un efecto.

Parameters:

efecto: el efecto a animar.

valor: la cantidad de efecto hasta la que se debe animar.

tiempo: la duración de la animación del efecto.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleEffectBy"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectTo","values":[{"type":"choice","value":"color"},{"type":"number","value":1},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleMoveBy"}

Moverse en

Se mueve la cantidad indicada para las coordenadas x e y durante el tiempo especificado.

Parameters:

x,y: la cantidad que debe variar la posición en las coordenadas x e y.

tiempo: el tiempo para moverse a la posición indicada.

nombre: el nombre de esta animación.

Related Blocks:
{"func":"blockAnimationSimpleMoveTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveBy","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"number","value":"1"},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleEffectBy"}

Cambiar efecto en

Realiza la animación de un efecto en relación con el valor actual del efecto.

Parameters:

efecto: el efecto a animar.

valor: la cantidad de efecto que se debe animar.

tiempo: la duración de la animación del cambio.

nombre: el nombre de la animación.

Related Blocks:
{"func":"blockAnimationSimpleEffectTo"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"fade"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Fall Die"},{"type":"number","value":"30"},{"type":"number","value":"1"},{"type":"string","value":"fade"}],"next":{"func":"blockAnimationSimpleEffectBy","values":[{"type":"choice","value":"ghost"},{"type":"number","value":"25"},{"type":"number","value":"1"},{"type":"string","value":""}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"fade"}]}}}} Add to my Backpack


Animation Control

{"func":"registerAnimationDone"}

When Animation Done

When the specified animation is done, this script will be triggered.

Parameters:

Name: This is the name of the animation that will trigger the script.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerAnimationDone","values":[{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Flip"}]}} Add to my Backpack


{"func":"blockAnimationWaitFor"}

Wait for Animation

"Wait for Animation" pauses the script until the named animation is finished.

Parameters:

Animation: This is the name of the animation to wait for.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


{"func":"blockAnimationStop"}

Stop Animation

"Stop Animation" stops the named animation.

Parameters:

Animation: This is the name of the animation to stop.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"next":{"func":"blockControlWhile","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Run"}]}],"next":{"func":"blockAnimationStop","values":[{"type":"string","value":"Run"}]}}} Add to my Backpack


{"func":"valueAnimationTime"}

Animation Time

"Animation Time" returns the time it takes for an animation to go for one cycle.

Parameters:

Animation: This is the name of the animation to get the length of.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"valueAnimationIsRunning"}

Is Animation Running?

"Is Animation Running?" checks to see if the animation is running.

Parameters:

Animation: This is the animation to test for whether it is running or not.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"stop walking"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueAnimationIsRunning","values":[{"type":"string","value":"Walk"}]}],"containers":[{"func":"blockAnimationStop","values":[{"type":"string","value":"Walk"}]}]}} Add to my Backpack


{"func":"blockAnimationStop"}

Detener animación

Detiene la animación mencionada.

Parameters:

animación: la animación que se debe detener.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"next":{"func":"blockControlWhile","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Run"}]}],"next":{"func":"blockAnimationStop","values":[{"type":"string","value":"Run"}]}}} Add to my Backpack


{"func":"valueAnimationTime"}

Tiempo de animación

El tiempo que le lleva a una animación completar un ciclo.

Parameters:

animación: la animación cuya duración se quiere obtener.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"valueAnimationIsRunning"}

¿Está activada la animación?

Comprueba si se está ejecutando la animación.

Parameters:

animación: la animación cuya ejecución se quiere comprobar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"stop walking"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueAnimationIsRunning","values":[{"type":"string","value":"Walk"}]}],"containers":[{"func":"blockAnimationStop","values":[{"type":"string","value":"Walk"}]}]}} Add to my Backpack


{"func":"registerAnimationDone"}

Cuando finalice la animación

Esta secuencia de comandos se ejecutará cuando finalice la animación especificada.

Parameters:

nombre: nombre de la animación.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerAnimationDone","values":[{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Flip"}]}} Add to my Backpack


{"func":"blockAnimationWaitFor"}

Esperar por la animación

Espera a que termine la animación.

Parameters:

animación: la animación que se debe esperar.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


{"func":"blockAnimationWaitFor"}

Esperar por la animación

Espera a que termine la animación.

Parameters:

animación: la animación que se debe esperar.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


{"func":"blockAnimationStop"}

Detener animación

Detiene la animación mencionada.

Parameters:

animación: la animación que se debe detener.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"next":{"func":"blockControlWhile","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Run"}]}],"next":{"func":"blockAnimationStop","values":[{"type":"string","value":"Run"}]}}} Add to my Backpack


{"func":"valueAnimationTime"}

Tiempo de animación

El tiempo que le lleva a una animación completar un ciclo.

Parameters:

animación: la animación cuya duración se quiere obtener.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"walk"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Walk"},{"type":"number","value":"30"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationSimpleMoveTo","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueMotionXPosition"},{"type":"choice","value":"+"},{"type":"string","value":"100"}]},{"type":"wrapper","func":"valueMotionYPosition"},{"type":"wrapper","func":"valueOpMultiply","values":[{"type":"wrapper","func":"valueAnimationTime","values":[{"type":"string","value":"Walk"}]},{"type":"number","value":3}]},{"type":"string","value":"walk"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"walk"}]}}}} Add to my Backpack


{"func":"valueAnimationIsRunning"}

¿Está activada la animación?

Comprueba si se está ejecutando la animación.

Parameters:

animación: la animación cuya ejecución se quiere comprobar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"stop walking"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueAnimationIsRunning","values":[{"type":"string","value":"Walk"}]}],"containers":[{"func":"blockAnimationStop","values":[{"type":"string","value":"Walk"}]}]}} Add to my Backpack


{"func":"registerAnimationDone"}

Cuando finalice la animación

Esta secuencia de comandos se ejecutará cuando finalice la animación especificada.

Parameters:

nombre: nombre de la animación.

Related Blocks:
{"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerAnimationDone","values":[{"type":"string","value":"jump"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Flip"}]}} Add to my Backpack


Basic Animation

{"func":"blockAnimationSimpleSwitchCostume"}

Animar

Anima al personaje durante un ciclo de animación.

Parameters:

animación: la animación que va a ejecutar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlForever","containers":[{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Jump"}]},{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Idle"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}]}} Add to my Backpack


{"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Animar y esperar

Animar el personaje durante un ciclo de animación y esperar.

Parameters:

animación: la animación que va ejecutar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"right arrow"}],"next":{"func":"blockMotionPointDirection","values":[{"type":"string","value":"90"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}]}}} Add to my Backpack


{"func":"blockAnimationSimpleSwitchCostume"}

Animate

"Animate" animates the character for one animation cycle.

Parameters:

Animation: The animation to perform.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlForever","containers":[{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Jump"}]},{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Idle"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}]}} Add to my Backpack


{"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Animate And Wait

"Animate" animates the character for one animation cycle and waits.

Parameters:

Animation: The animation to perform.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"right arrow"}],"next":{"func":"blockMotionPointDirection","values":[{"type":"string","value":"90"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}]}}} Add to my Backpack


{"func":"blockAnimationSetSpeed"}

Set Animation Speed

"Set Animation Speed" sets the speed of the character’s animations.

Parameters:

Value: This is the percentage of the normal animation speed to set the speed to.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":20}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":"100"}]}}}} Add to my Backpack


{"func":"blockAnimationAnimate"}

Animate With Name

Animate the character.

Parameters:

Animation: The animation to perform.

FPS: Frames per second to play the animation at.

Time: The time to perform the animation.

Name: What to call this animation.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


{"func":"blockAnimationSetSpeed"}

Establecer velocidad de animación

Fija la velocidad de animación.

Parameters:

valor: porcentaje de velocidad.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":20}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":"100"}]}}}} Add to my Backpack


{"func":"blockAnimationAnimate"}

Animar y poner nombre

Animar al personaje

Parameters:

animación: la animación que va a ejecutar.

fps: velocidad de reproducción de la animación en cuadros por segundo (Frames Per Second).

tiempo: la duración de la animación.

nombre: el nombre que se le pondrá a la animación.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


{"func":"blockAnimationSimpleSwitchCostume"}

Animar

Anima al personaje durante un ciclo de animación.

Parameters:

animación: la animación que va a ejecutar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlForever","containers":[{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Jump"}]},{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Idle"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}]}} Add to my Backpack


{"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Animar y esperar

Animar el personaje durante un ciclo de animación y esperar.

Parameters:

animación: la animación que va ejecutar.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"right arrow"}],"next":{"func":"blockMotionPointDirection","values":[{"type":"string","value":"90"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}]}}} Add to my Backpack


{"func":"blockAnimationSetSpeed"}

Establecer velocidad de animación

Fija la velocidad de animación.

Parameters:

valor: porcentaje de velocidad.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"} ,     {"func":"blockAnimationAnimate"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":20}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Walk"}],"next":{"func":"blockAnimationSetSpeed","values":[{"type":"number","value":"100"}]}}}} Add to my Backpack


{"func":"blockAnimationAnimate"}

Animar y poner nombre

Animar al personaje

Parameters:

animación: la animación que va a ejecutar.

fps: velocidad de reproducción de la animación en cuadros por segundo (Frames Per Second).

tiempo: la duración de la animación.

nombre: el nombre que se le pondrá a la animación.

Related Blocks:
{"func":"blockAnimationSimpleSwitchCostume"} ,     {"func":"blockAnimationSimpleSwitchCostumeAndWait"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"slow motion"}],"next":{"func":"blockAnimationAnimate","values":[{"type":"string","value":"Run"},{"type":"number","value":10},{"type":"number","value":3},{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationWaitFor","values":[{"type":"string","value":"slow run"}],"next":{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Run"}]}}}} Add to my Backpack


Character Parts

{"func":"blockLooksSetCharacterPart"}

Set Part

Sets a character part.

Parameters:

Part: This is the part of the character to change.

Skin: This is the character skin to change the part into.

Related Blocks:
{"func":"valueLooksGetCharacterPart"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"helmet"}]}],"next":{"func":"blockLooksSetCharacterPart","values":[{"type":"string","value":"Head"},{"type":"string","value":"knight"}]}} Add to my Backpack


{"func":"valueLooksGetCharacterPart"}

Get Part

Get a character part.

Parameters:

Part: This is the character part to retrieve.

Related Blocks:
{"func":"blockLooksSetCharacterPart"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"a"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueLooksGetCharacterPart","values":[{"type":"string","value":"Right Props"}]},{"type":"string","value":"knight"}]}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Attack 1"}]}]}} Add to my Backpack


{"func":"valueLooksGetCharacterPart"}

Obtener parte

Obtener una parte de un personaje.

Parameters:

parte: la parte a recuperar.

Related Blocks:
{"func":"blockLooksSetCharacterPart"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"a"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueLooksGetCharacterPart","values":[{"type":"string","value":"Right Props"}]},{"type":"string","value":"knight"}]}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Attack 1"}]}]}} Add to my Backpack


{"func":"blockLooksSetCharacterPart"}

establecer parte

Determina una parte de un personaje.

Parameters:

parte: la parte a cambiar.

El tema al que se debe cambiar.

Related Blocks:
{"func":"valueLooksGetCharacterPart"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"helmet"}]}],"next":{"func":"blockLooksSetCharacterPart","values":[{"type":"string","value":"Head"},{"type":"string","value":"knight"}]}} Add to my Backpack


{"func":"blockLooksSetCharacterPart"}

establecer parte

Determina una parte de un personaje.

Parameters:

parte: la parte a cambiar.

El tema al que se debe cambiar.

Related Blocks:
{"func":"valueLooksGetCharacterPart"}

Sample Code:
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"helmet"}]}],"next":{"func":"blockLooksSetCharacterPart","values":[{"type":"string","value":"Head"},{"type":"string","value":"knight"}]}} Add to my Backpack


{"func":"valueLooksGetCharacterPart"}

Obtener parte

Obtener una parte de un personaje.

Parameters:

parte: la parte a recuperar.

Related Blocks:
{"func":"blockLooksSetCharacterPart"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"a"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueLooksGetCharacterPart","values":[{"type":"string","value":"Right Props"}]},{"type":"string","value":"knight"}]}],"containers":[{"func":"blockAnimationSimpleSwitchCostumeAndWait","values":[{"type":"string","value":"Attack 1"}]}]}} Add to my Backpack