Sensing Blocks

Accelerometer

{"func":"valueSensingTiltAmount"}

Tilt Amount

"Tilt Amount" returns how much the device is tilted.

Related Blocks:
{"func":"valueSensingTiltAngle"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingAccelerometerX"}

X Tilt

"Tilt Amount" returns how much the device is tilted horizontally.

Related Blocks:
{"func":"valueSensingAccelerometerY"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerX"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"func":"valueSensingAccelerometerY"}

Y Tilt

"Tilt Amount" returns how much the device is tilted vertically.

Related Blocks:
{"func":"valueSensingAccelerometerX"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerY"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"func":"valueSensingTiltAngle"}

Ángulo de inclinación

"Ángulo de inclinación" devuelve el ángulo de inclinación del dispositivo.

Related Blocks:
{"func":"valueSensingTiltAmount"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingTiltAmount"}

Cantidad de inclinación

"Cantidad de inclinación" devuelve el valor de la inclinación del dispositivo.

Related Blocks:
{"func":"valueSensingTiltAngle"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingTiltAngle"}

Tilt Angle

"Tilt Angle" returns the angle at which the device is tilted.

Related Blocks:
{"func":"valueSensingTiltAmount"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingAccelerometerX"}

Inclinación X

"Inclinación X" devuelve la cantidad de inclinación en sentido horizontal.

Related Blocks:
{"func":"valueSensingAccelerometerY"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerX"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"func":"valueSensingAccelerometerY"}

Inclinación Y

"Inclinación Y" devuelve la cantidad de inclinación en sentido vertical.

Related Blocks:
{"func":"valueSensingAccelerometerX"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerY"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"func":"valueSensingAccelerometerY"}

Inclinación Y

"Inclinación Y" devuelve la cantidad de inclinación en sentido vertical.

Related Blocks:
{"func":"valueSensingAccelerometerX"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerY"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"func":"valueSensingTiltAngle"}

Ángulo de inclinación

"Ángulo de inclinación" devuelve el ángulo de inclinación del dispositivo.

Related Blocks:
{"func":"valueSensingTiltAmount"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingTiltAmount"}

Cantidad de inclinación

"Cantidad de inclinación" devuelve el valor de la inclinación del dispositivo.

Related Blocks:
{"func":"valueSensingTiltAngle"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionPointAngle","values":[{"type":"wrapper","func":"valueSensingTiltAngle"}],"next":{"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueSensingTiltAmount"}]}}]} Add to my Backpack


{"func":"valueSensingAccelerometerX"}

Inclinación X

"Inclinación X" devuelve la cantidad de inclinación en sentido horizontal.

Related Blocks:
{"func":"valueSensingAccelerometerY"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingAccelerometerX"},{"type":"string","value":"0"}]}],"containers":[{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"10"}]},{"func":"blockMotionChangeXBy","values":[{"type":"number","value":"-10"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


Time

{"func":"blockSensingResetTimer"}

Reset Timer

"Reset Timer" resets the timer to 0:00.

Parameters:

None.

Related Blocks:
{"func":"valueSensingTimer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingResetTimer"}} Add to my Backpack


{"func":"valueSensingTimer"}

Timer

"Timer" returns the timer’s current value (how much time as passed since the timer was last reset).

Parameters:

None.

Related Blocks:
{"func":"blockSensingResetTimer"}

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingTimer"}]} Add to my Backpack


{"func":"valueSensingDateTime"}

Date/Time

"Date/Time" returns the property specified by the first parameter having to do with the date/time.

Parameters:

Date property: This parameter is the property you want to retrieve regarding the current date or time. Options include "year," "month," "day," "hours," "minutes," "seconds," "milliseconds," "unix time," and "text." "Text" returns the current time in string format, such as "15:16:21 GMT-0700 (PDT)."

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingDateTime","values":[{"type":"choice","value":"text"}]}]} Add to my Backpack


{"func":"blockSensingResetTimer"}

Reiniciar temporizador

"Reiniciar temporizador" reinicia el temporizador para que quede en pausa en 0:00.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTimer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingResetTimer"}} Add to my Backpack


{"func":"valueSensingTimer"}

Temporizador

"Temporizador" devuelve el valor actuar del temporizador (el tiempo transcurrido desde el último reinicio del temporizador).

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSensingResetTimer"}

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingTimer"}]} Add to my Backpack


{"func":"valueSensingDateTime"}

Fecha/hora

"Fecha/hora" devuelve la propiedad especificada en el primer parámetro relacionada con la fecha y hora.

Parameters:

Propiedad de la fecha: este parámetro es la propiedad que deseas recuperar de la fecha. Las opciones incluyen "año", "mes", "día", "horas", "minutos", "segundos", "milisegundos", "hora unix" y "texto". "Texto" devuelve la hora actual en formato de cadena de caracteres, por ejemplo: "15:16:21 GMT-0700 (PDT)."

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingDateTime","values":[{"type":"choice","value":"text"}]}]} Add to my Backpack


{"func":"blockSensingResetTimer"}

Reiniciar temporizador

"Reiniciar temporizador" reinicia el temporizador para que quede en pausa en 0:00.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTimer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingResetTimer"}} Add to my Backpack


{"func":"valueSensingTimer"}

Temporizador

"Temporizador" devuelve el valor actuar del temporizador (el tiempo transcurrido desde el último reinicio del temporizador).

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSensingResetTimer"}

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingTimer"}]} Add to my Backpack


{"func":"valueSensingDateTime"}

Fecha/hora

"Fecha/hora" devuelve la propiedad especificada en el primer parámetro relacionada con la fecha y hora.

Parameters:

Propiedad de la fecha: este parámetro es la propiedad que deseas recuperar de la fecha. Las opciones incluyen "año", "mes", "día", "horas", "minutos", "segundos", "milisegundos", "hora unix" y "texto". "Texto" devuelve la hora actual en formato de cadena de caracteres, por ejemplo: "15:16:21 GMT-0700 (PDT)."

Sample Code:
{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueSensingDateTime","values":[{"type":"choice","value":"text"}]}]} Add to my Backpack


Actor Properties

{"func":"blockSensingSpriteProperty"}

Set Property Of

"Set Property Of" sets the property of the Actor specified by the first parameter to the value of the second parameter. If you attempt to set a property that doesn’t exist, such as the volume of the mouse-pointer, this code block does nothing.

Parameters:

Actor: This is the Actor whose Property you want to set. Options include "mouse-pointer," any of the edges, and any of your Actors.

Property: This is the property that you want to set. Options include "x position," "y position," "direction," "costume #," "size," "volume," "width," and other physical properties.

Related Blocks:
{"func":"valueSensingSpriteProperty"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingSpriteProperty","values":[{"type":"choice","value":"x position"},{"type":"string","value":"actor"},{"type":"string","value":"50"}]}} Add to my Backpack


{"func":"valueSensingSpriteProperty"}

Property of

"Property of" returns the property specified by the first parameter of the object specified by the second parameter. If you attempt to retrieve a property that doesn’t exist, such as the volume of the mouse-pointer, this code block returns nothing.

Parameters:

Property: This is the property that you want to receive. Options include "x position," "y position," "direction," "costume #," "size," "volume," "width," and other physical properties.

Actor: This is the Actor whose Property you want to receive. Options include "mouse-pointer," any of the edges, and any of your Actors.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockPhysicsSetAngularVelocity","values":[{"type":"wrapper","func":"valueSensingSpriteProperty","values":[{"type":"choice","value":"angular velocity"},{"type":"string","value":"Ball"}]}]} Add to my Backpack


{"func":"valueSensingActorName"}

My Actor Name

"My Actor Name" returns the name of the current Actor.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hello, I'm "},{"type":"wrapper","func":"valueSensingActorName"},{"type":"string","value":"."},{"type":"number","value":"2"}]}} Add to my Backpack


{"func":"valueSensingActorNameAt"}

Name of Actor

"Name of Actor" returns the name of the specified Actor.

Parameters:

Actor: This parameter is the number of the Actor whose name you want to retrieve. Your first Actor’s number is 1. If you use a number that exceeds the number of Actors you have, the code block will return the name of your last Actor. If you use 0 or a negative number, the code block will return the name of your first Actor.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"valueSensingActorNameAt"}

Nombre del Actor

"Nombre del Actor" devuelve el nombre del Actor especificado.

Parameters:

Actor: este parámetro es el número del Actor cuyo nombre deseas recuperar. El número de tu primer Actor es 1. Si utilizas un número mayor al del número de actores que posees, el bloque de código devolverá el nombre de tu último Actor. Si utilizas 0 o un número negativo, el bloque de código devolverá el nombre de tu primer Actor.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"valueSensingNumActors"}

# de Actores

"# de Actores" devuelve el número total de actores en el programa actual.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingActorNameAt"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"valueSensingNumActors"}

# of Actors

"# of Actors" returns the total number of Actors in the current program.

Parameters:

None.

Related Blocks:
{"func":"valueSensingActorNameAt"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"blockSensingSpriteProperty"}

Establecer propiedad de

"Establecer propiedad de" establece la propiedad del Actor especificada en el primer parámetro, al valor indicado en el segundo parámetro. Si intentas configurar una propiedad que no existe como, por ejemplo, el volumen para el punto presionado, este bloque de código no hará nada.

Parameters:

Actor: éste es el Actor cuya propiedad deseas configurar. Las opciones incluyen "punto presionado", cualquiera de los bordes y cualquiera de tus Actores.

Propiedad: esta es la propiedad que deseas configurar. Las opciones incluyen "posición X", "posición Y", "dirección", "# de disfraz", "tamaño", "volumen", "ancho" y otras propiedades físicas.

Related Blocks:
{"func":"valueSensingSpriteProperty"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingSpriteProperty","values":[{"type":"choice","value":"x position"},{"type":"string","value":"actor"},{"type":"string","value":"50"}]}} Add to my Backpack


{"func":"valueSensingSpriteProperty"}

Propiedad de

"Propiedad de" devuelve la propiedad especificada en el primer parámetro del objeto especificado en el segundo parámetro. Si intentas recuperar una propiedad que no existe, como el volumen del punto presionado, este bloque de código no hará nada.

Parameters:

Propiedad: esta es la propiedad que deseas recibir. Las opciones incluyen "posición X", "posición Y", "dirección", "# de disfraz", "volumen", "ancho" y otras propiedades físicas.

Actor: éste es el Actor cuya propiedad deseas recibir. Las opciones incluyen "punto presionado", cualquiera de los bordes y cualquiera de tus Actores.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockPhysicsSetAngularVelocity","values":[{"type":"wrapper","func":"valueSensingSpriteProperty","values":[{"type":"choice","value":"angular velocity"},{"type":"string","value":"Ball"}]}]} Add to my Backpack


{"func":"valueSensingActorName"}

Nombre de mi actor

"Nombre de mi actor" devuelve el nombre del actor actual.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hello, I'm "},{"type":"wrapper","func":"valueSensingActorName"},{"type":"string","value":"."},{"type":"number","value":"2"}]}} Add to my Backpack


{"func":"blockSensingSpriteProperty"}

Establecer propiedad de

"Establecer propiedad de" establece la propiedad del Actor especificada en el primer parámetro, al valor indicado en el segundo parámetro. Si intentas configurar una propiedad que no existe como, por ejemplo, el volumen para el punto presionado, este bloque de código no hará nada.

Parameters:

Actor: éste es el Actor cuya propiedad deseas configurar. Las opciones incluyen "punto presionado", cualquiera de los bordes y cualquiera de tus Actores.

Propiedad: esta es la propiedad que deseas configurar. Las opciones incluyen "posición X", "posición Y", "dirección", "# de disfraz", "tamaño", "volumen", "ancho" y otras propiedades físicas.

Related Blocks:
{"func":"valueSensingSpriteProperty"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingSpriteProperty","values":[{"type":"choice","value":"x position"},{"type":"string","value":"actor"},{"type":"string","value":"50"}]}} Add to my Backpack


{"func":"valueSensingActorName"}

Nombre de mi actor

"Nombre de mi actor" devuelve el nombre del actor actual.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hello, I'm "},{"type":"wrapper","func":"valueSensingActorName"},{"type":"string","value":"."},{"type":"number","value":"2"}]}} Add to my Backpack


{"func":"valueSensingActorNameAt"}

Nombre del Actor

"Nombre del Actor" devuelve el nombre del Actor especificado.

Parameters:

Actor: este parámetro es el número del Actor cuyo nombre deseas recuperar. El número de tu primer Actor es 1. Si utilizas un número mayor al del número de actores que posees, el bloque de código devolverá el nombre de tu último Actor. Si utilizas 0 o un número negativo, el bloque de código devolverá el nombre de tu primer Actor.

Related Blocks:
{"func":"valueSensingNumActors"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"valueSensingNumActors"}

# de Actores

"# de Actores" devuelve el número total de actores en el programa actual.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingActorNameAt"} ,     {"func":"valueControlLastClonedActor"}

Sample Code:
{"func":"blockLooksSetLabel","values":[{"type":"wrapper","func":"valueSensingActorNameAt","values":[{"type":"wrapper","func":"valueSensingNumActors"}]}]} Add to my Backpack


{"func":"valueSensingSpriteProperty"}

Propiedad de

"Propiedad de" devuelve la propiedad especificada en el primer parámetro del objeto especificado en el segundo parámetro. Si intentas recuperar una propiedad que no existe, como el volumen del punto presionado, este bloque de código no hará nada.

Parameters:

Propiedad: esta es la propiedad que deseas recibir. Las opciones incluyen "posición X", "posición Y", "dirección", "# de disfraz", "volumen", "ancho" y otras propiedades físicas.

Actor: éste es el Actor cuya propiedad deseas recibir. Las opciones incluyen "punto presionado", cualquiera de los bordes y cualquiera de tus Actores.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockPhysicsSetAngularVelocity","values":[{"type":"wrapper","func":"valueSensingSpriteProperty","values":[{"type":"choice","value":"angular velocity"},{"type":"string","value":"Ball"}]}]} Add to my Backpack


User Properties

{"func":"valueSensingUserId"}

User ID

"User ID" returns the user ID of the user running your program.

Parameters:

None.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserId"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


{"func":"valueSensingUserFirstName"}

User First Name

"User First Name" returns the first name of the user running your program.

Parameters:

None.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserFirstName"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


{"func":"valueSensingUserId"}

ID de usuario

"ID de usuario" devuelve la ID del usuario que está ejecutando tu programa.

Parameters:

Ninguno.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserId"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


{"func":"valueSensingUserFirstName"}

Primer nombre de usuario

"Primer nombre de usuario" devuelve el primer nombre del usuario que está ejecutando tu programa.

Parameters:

Ninguno.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserFirstName"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


{"func":"valueSensingUserId"}

ID de usuario

"ID de usuario" devuelve la ID del usuario que está ejecutando tu programa.

Parameters:

Ninguno.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserId"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


{"func":"valueSensingUserFirstName"}

Primer nombre de usuario

"Primer nombre de usuario" devuelve el primer nombre del usuario que está ejecutando tu programa.

Parameters:

Ninguno.

Sample Code:
{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi "},{"type":"wrapper","func":"valueSensingUserFirstName"},{"type":"string","value":""},{"type":"number","value":"2"}]} Add to my Backpack


Platform Properties

{"func":"valueSensingPlatformProperty"}

Platform

"Platform" returns information about the platform running Tynker.

Parameters:

Property: This parameter is property of the Platform you want to retrieve. The only option is "type". "type" returns "mobile" when Tynker is running on an iPad or Android tablet. It returns "web" when Tynker is running in a browser such as Firefox, Chrome, Edge, or Safari.

Sample Code:
{"func":"registerFlagTrigger","values":[],"containers":[],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingPlatformProperty","values":[{"type":"string","value":"type"}]},{"type":"string","value":"mobile"}]}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"touch the actor"}],"containers":[]},{"func":"blockLooksSay","values":[{"type":"string","value":"click on the actor"}],"containers":[]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


{"func":"valueSensingPlatformProperty"}

Platform

"Platform" returns information about the platform running Tynker.

Parameters:

Property: this parameter is property of the Platform you want to retrieve. The only option is "type". "type" returns "mobile" when Tynker is running on an iPad or Android tablet. It returns "web" when Tynker is running in a browser such as Firefox, Chrome, Edge, or Safari.

Sample Code:
{"func":"registerFlagTrigger","values":[],"containers":[],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingPlatformProperty","values":[{"type":"string","value":"type"}]},{"type":"string","value":"mobile"}]}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"touch the actor"}],"containers":[]},{"func":"blockLooksSay","values":[{"type":"string","value":"click on the actor"}],"containers":[]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


{"func":"valueSensingPlatformProperty"}

Platform

"Platform" returns information about the platform running Tynker.

Parameters:

Property: this parameter is property of the Platform you want to retrieve. The only option is "type". "type" returns "mobile" when Tynker is running on an iPad or Android tablet. It returns "web" when Tynker is running in a browser such as Firefox, Chrome, Edge, or Safari.

Sample Code:
{"func":"registerFlagTrigger","values":[],"containers":[],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingPlatformProperty","values":[{"type":"string","value":"type"}]},{"type":"string","value":"mobile"}]}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"touch the actor"}],"containers":[]},{"func":"blockLooksSay","values":[{"type":"string","value":"click on the actor"}],"containers":[]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


AR

{"type":"wrapper","func":"valueSensingVideo","values":[{"type":"choice","value":"motion"},{"type":"string","value":"mouse-pointer"}]}

Video Activity

"Video Activity" returns true if the given video activity is occurring on the given Actor and false otherwise.

Parameters:

Activity type: This is the type of video activity you're looking for.

Actor: This is the Actor or other location on which you're looking for video activity.

Related Blocks:
{"func":"blockLooksVideoGetColor"} ,     {"func":"valueSensingVideoGetColor"}

Sample Code:
{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueSensingVideo","values":[{"type":"choice","value":"motion"},{"type":"string","value":"self"}]}],"containers":[{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"button on"}]},{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"button off"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]} Add to my Backpack


{"type":"wrapper","func":"valueSensingVideoLastColorCenterX"}

Found Color Position X

"Found Color Position X" returns the X coordinate of the color that "Find Color on Video" last found.

Parameters:

None.

Related Blocks:
{"func":"blockSensingVideoFindColor"} ,     {"func":"valueSensingVideoLastColorCenterY"}

Sample Code:
{"func":"blockSensingVideoFindColor","values":[{"type":"wrapper","func":"valueScriptVar","name":"myColor"},{"type":"number","value":20}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueSensingVideoLastColorCenterX"},{"type":"wrapper","func":"valueSensingVideoLastColorCenterY"}]}} Add to my Backpack


{"type":"wrapper","func":"valueSensingVideoLastColorCenterY"}

Found Color Position Y

"Found Color Position Y" returns the Y coordinate of the color that "Find Color on Video" last found.

Parameters:

None.

Related Blocks:
{"func":"blockSensingVideoFindColor"} ,     {"func":"valueSensingVideoLastColorCenterX"}

Sample Code:
{"func":"blockSensingVideoFindColor","values":[{"type":"wrapper","func":"valueScriptVar","name":"myColor"},{"type":"number","value":20}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueSensingVideoLastColorCenterX"},{"type":"wrapper","func":"valueSensingVideoLastColorCenterY"}]}} Add to my Backpack


{"type":"wrapper","func":"valueSensingVideoGetColor"}

Get Color Under Actor

"Get Color Under Actor" returns the color in the video feed underneath the current Actor.

Parameters:

None.

Related Blocks:
{"func":"blockLooksVideoGetColor"} ,     {"func":"valueSensingVideo"}

Sample Code:
{"func":"blockPenSetColor","values":[{"type":"wrapper","func":"valueSensingVideoGetColor"}]} Add to my Backpack


{"func":"blockSensingVideoFindColor","values":[{"type":"color","value":"#ffffff"},{"type":"number","value":"0"}]}

Find Color on Video

"Find Color on Video" searches the video feed for a given color and internally saves the location of the strongest concentration of that color.

Parameters:

Color: This is the color to look for in the video feed.

Tolerance: This is how forgiving the color search is. The lower the tolerance percentage, the more exact the color match must be; the higher the tolerance percentage, the less exact the color match can be.

Related Blocks:
{"func":"valueSensingVideoLastColorCenterX"} ,     {"func":"valueSensingVideoLastColorCenterY"}

Sample Code:
{"func":"blockSensingVideoFindColor","values":[{"type":"wrapper","func":"valueScriptVar","name":"myColor"},{"type":"number","value":20}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueSensingVideoLastColorCenterX"},{"type":"wrapper","func":"valueSensingVideoLastColorCenterY"}]}} Add to my Backpack


Visibility

{"func":"valueSensingTouchingSprite"}

Touching

"Touching" returns true if the Actor is touching the parameter and false otherwise.

Parameters:

Object: This parameter indicates the object that you want to see if your Actor is touching. Options include "mouse-pointer," any edge of the screen, and any of your Actors.

Related Blocks:
{"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"rightedge"}]}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"Turnme around!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingTouchedActorName"}

Name of Actor Touched

"Name of Actor Touched" returns the name of the Actor that the current Actor is touching.

Parameters:

None.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"registerSpriteCollision","next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueListContains","values":[{"type":"string","value":"ActorsHit"},{"type":"wrapper","func":"valueSensingTouchedActorName"}]}]}],"containers":[{"func":"blockListAdd","values":[{"type":"wrapper","func":"valueSensingTouchedActorName"},{"type":"string","value":"ActorsHit"}]}]}} Add to my Backpack


{"func":"valueSensingSeeColor"}

Color Is Touching

"Color Is Touching" returns true if the first color is touching the second color and false otherwise.

Parameters:

Color1: "Color Is Touching" returns true if this parameter, a color, is touching Color2.

Color2: "Color Is Touching" returns true if this parameter, a color, is touching Color1.

Related Blocks:
{"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingSeeColor","values":[{"type":"color","value":"#0000ff"},{"type":"color","value":"#ff0000"}]}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Purple!"}]}} Add to my Backpack


{"func":"valueSensingDistanceToSprite"}

Distance To

"Distance To" returns the pixel distance between the current Actor and the parameter.

Parameters:

Object: This parameter indicates the object you are measuring the distance to. Options include "mouse-pointer," any edge of the screen, and any of your Actors.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockMotionChangeYBy","values":[{"type":"wrapper","func":"valueOpSubtract","values":[{"type":"number","value":"0"},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"bottomedge"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchedActorName"}

Nombre del Actor tocado

"Nombre del Actor tocado" devuelve el nombre que el Actor actual está tocando.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"registerSpriteCollision","next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueListContains","values":[{"type":"string","value":"ActorsHit"},{"type":"wrapper","func":"valueSensingTouchedActorName"}]}]}],"containers":[{"func":"blockListAdd","values":[{"type":"wrapper","func":"valueSensingTouchedActorName"},{"type":"string","value":"ActorsHit"}]}]}} Add to my Backpack


{"func":"valueSensingTouchingColor"}

Tocando color

"Tocando color" devuelve un valor verdadero si el Actor está tocando el color especificado.

Parameters:

Color: este parámetro es el color que deseas comprobar si tu Actor está tocando.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingSeeColor"}

Color está tocando

"Color está tocando" devuelve un valor verdadero si el primer color está tocando al segundo color, y un valor falso en caso contrario.

Parameters:

Color1: "Color está tocando" devuelve un valor verdadero si este parámetro, que es un color, está tocando al Color2.

Color2: "Color está tocando" devuelve un valor verdadero si este parámetro, que es un color, está tocando al Color1.

Related Blocks:
{"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingSeeColor","values":[{"type":"color","value":"#0000ff"},{"type":"color","value":"#ff0000"}]}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Purple!"}]}} Add to my Backpack


{"func":"valueSensingDistanceToSprite"}

Distancia hasta

"Distancia hasta" devuelve la distancia en píxeles entre el Actor actual y el parámetro.

Parameters:

Objeto: este parámetro indica el objeto cuya distancia con el Actor estás midiendo. Las opciones incluyen "punto presionado", cualquier borde de la pantalla y cualquiera de tus Actores.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockMotionChangeYBy","values":[{"type":"wrapper","func":"valueOpSubtract","values":[{"type":"number","value":"0"},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"bottomedge"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchingCloneOf"}

Touching Clone

"Touching Clone" returns true if the current Actor is touching a clone of the Actor specified by the parameter.

Parameters:

Actor: "Touching Clone" checks if the Actor whose code you are editing is touching a clone of this parameter, which should be the name of an original, non-cloned Actor.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchingColor"}

Touching Color

"Touching Color" returns true if the Actor is touching the specified color.

Parameters:

Color: This parameter is the color that you want to see if your Actor is touching.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchingSprite"}

Tocando

"Tocando" devuelve un valor verdadero si el Actor está tocando al parámetro y falso en caso contrario.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"rightedge"}]}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"Turnme around!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingTouchingCloneOf"}

Tocando el clon de

"Tocando el clon de" devuelve un valor verdadero si el Actor actual está tocando a un clon del Actor especificado en el parámetro.

Parameters:

Actor: "Tocando el clon de" comprueba si el Actor cuyo código estás editando está tocando a un clon de este parámetro, que debe ser el nombre de un Actor original, no de un clon.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchingSprite"}

Tocando

"Tocando" devuelve un valor verdadero si el Actor está tocando al parámetro y falso en caso contrario.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"string","value":"rightedge"}]}],"next":{"func":"blockLooksThinkFor","values":[{"type":"string","value":"Turnme around!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingTouchingCloneOf"}

Tocando el clon de

"Tocando el clon de" devuelve un valor verdadero si el Actor actual está tocando a un clon del Actor especificado en el parámetro.

Parameters:

Actor: "Tocando el clon de" comprueba si el Actor cuyo código estás editando está tocando a un clon de este parámetro, que debe ser el nombre de un Actor original, no de un clon.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingColor"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingTouchedActorName"}

Nombre del Actor tocado

"Nombre del Actor tocado" devuelve el nombre que el Actor actual está tocando.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"registerSpriteCollision","next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpNot","values":[{"type":"wrapper","func":"valueListContains","values":[{"type":"string","value":"ActorsHit"},{"type":"wrapper","func":"valueSensingTouchedActorName"}]}]}],"containers":[{"func":"blockListAdd","values":[{"type":"wrapper","func":"valueSensingTouchedActorName"},{"type":"string","value":"ActorsHit"}]}]}} Add to my Backpack


{"func":"valueSensingTouchingColor"}

Tocando color

"Tocando color" devuelve un valor verdadero si el Actor está tocando el color especificado.

Parameters:

Color: este parámetro es el color que deseas comprobar si tu Actor está tocando.

Related Blocks:
{"func":"valueSensingTouchingSprite"} ,     {"func":"valueSensingTouchingCloneOf"} ,     {"func":"valueSensingTouchedActorName"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingTouchingCloneOf","values":[{"type":"string","value":"Ball"}]},{"type":"wrapper","func":"valueSensingTouchingColor","values":[{"type":"color","value":"#ffffff"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"AddPoint"}]}]}]} Add to my Backpack


{"func":"valueSensingSeeColor"}

Color está tocando

"Color está tocando" devuelve un valor verdadero si el primer color está tocando al segundo color, y un valor falso en caso contrario.

Parameters:

Color1: "Color está tocando" devuelve un valor verdadero si este parámetro, que es un color, está tocando al Color2.

Color2: "Color está tocando" devuelve un valor verdadero si este parámetro, que es un color, está tocando al Color1.

Related Blocks:
{"func":"valueSensingTouchingColor"}

Sample Code:
{"func":"blockControlWaitUntil","values":[{"type":"wrapper","func":"valueSensingSeeColor","values":[{"type":"color","value":"#0000ff"},{"type":"color","value":"#ff0000"}]}],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Purple!"}]}} Add to my Backpack


{"func":"valueSensingDistanceToSprite"}

Distancia hasta

"Distancia hasta" devuelve la distancia en píxeles entre el Actor actual y el parámetro.

Parameters:

Objeto: este parámetro indica el objeto cuya distancia con el Actor estás midiendo. Las opciones incluyen "punto presionado", cualquier borde de la pantalla y cualquiera de tus Actores.

Related Blocks:
{"func":"valueSensingMouseX"} ,     {"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockMotionChangeYBy","values":[{"type":"wrapper","func":"valueOpSubtract","values":[{"type":"number","value":"0"},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"bottomedge"}]}]}]} Add to my Backpack


User Input

{"func":"blockSensingAskAndWait"}

Ask and Wait

"Ask and Wait" asks the user a question and stops all scripts until the user responds.

Parameters:

Text: This parameter is the text of the question you want to ask.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingAnswer"}

Answer

"Answer" returns the user’s answer to the last question the program asked.

Parameters:

None.

Related Blocks:
{"func":"blockSensingAskAndWait"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockSensingAskAndWait"}

Preguntar y esperar

"Preguntar y esperar" hace una pregunta al usuario y detiene todas las secuencias de comandos hasta que responda.

Parameters:

Texto: este parámetro es el texto de la pregunta que deseas hacer.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockSensingAskChoices"}

Preguntar con opciones

"Preguntar con opciones" hace una pregunta y detiene todas las secuencias de comandos hasta que el usuario responda.

Parameters:

Texto: este parámetro es el texto de la pregunta que deseas hacer.

Opciones: uno o más parámetros que serán las opciones para la pregunta.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"blockSensingAskChoices","values":[{"type":"string","value":"Do you want to continue?"},{"type":"string","value":"Yes"},{"type":"string","value":"No"}],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"Yes"}]}],"containers":[{"func":"blockLooksSayFor","values":[{"type":"string","value":"Great! Let's get started."},{"type":"number","value":"2"}]},{"func":"blockLooksSayFor","values":[{"type":"string","value":"Bye!"},{"type":"number","value":"2"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


{"func":"valueSensingAnswer"}

Respuesta

"Respuesta" devuelve la respuesta del usuario a la última pregunta que hizo el programa.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSensingAskAndWait"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingMouseX"}

Tocar X

"Tocar X" devuelve la coordenada actual X del punto presionado.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseY"}

Tocar Y

"Tocar Y" devuelve la coordenada actual Y del punto presionado.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingMouseX"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseDown"}

¿Presionando la pantalla?

"¿Presionando la pantalla" devuelve un valor verdadero si el usuario está tocando la pantalla, y un valor falso en caso contrario.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingKeyPressed"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockPenDown"}]} Add to my Backpack


{"func":"valueSensingKeyPressed"}

¿Tecla presionada?

"¿Tecla presionada?" es verdadero si el usuario está presionando la tecla indicada, y falso en caso contrario.

Parameters:

Tecla: esta es la tecla que quieres comprobar si ha sido presionada por el usuario. Las opciones incluyen "flecha arriba", "flecha abajo", "flecha izquierda", "flecha derecha", "espacio", "Intro" y cualquier tecla con letras o números.

Related Blocks:
{"func":"valueSensingMouseDown"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"rightarrow"}],"next":{"func":"blockMotionPointTowards","values":[{"type":"string","value":"rightedge"}],"next":{"func":"blockMotionMove","values":[{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockSensingAskChoices"}

Ask with Choices

"Ask with Choices" asks the user a question and stops all scripts until the user responds.

Parameters:

Text: This parameter is the text of the question you want to ask.

Choices: One or more parameter to hold the different choices for the question.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"blockSensingAskChoices","values":[{"type":"string","value":"Do you want to continue?"},{"type":"string","value":"Yes"},{"type":"string","value":"No"}],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"Yes"}]}],"containers":[{"func":"blockLooksSayFor","values":[{"type":"string","value":"Great! Let's get started."},{"type":"number","value":"2"}]},{"func":"blockLooksSayFor","values":[{"type":"string","value":"Bye!"},{"type":"number","value":"2"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


{"func":"valueSensingMouseX"}

Mouse X

"Mouse X" returns the mouse-pointer’s current X coordinate.

Parameters:

None.

Related Blocks:
{"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseY"}

Mouse Y

"Mouse Y" returns the mouse-pointer’s current Y coordinate.

Parameters:

None.

Related Blocks:
{"func":"valueSensingMouseX"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseDown"}

Mouse Down?

"Mouse Down?" returns true if the user is pressing the mouse button and false otherwise.

Parameters:

None.

Related Blocks:
{"func":"valueSensingKeyPressed"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockPenDown"}]} Add to my Backpack


{"func":"valueSensingKeyPressed"}

Key Pressed?

"Key Pressed?" returns true if the user is pressing the specified key and false otherwise.

Parameters:

Key: This is the key that you want to check if the user pressed. Options include "up arrow," "down arrow," "left arrow," "right arrow," "space," "return," and any letters or numbers.

Related Blocks:
{"func":"valueSensingMouseDown"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"rightarrow"}],"next":{"func":"blockMotionPointTowards","values":[{"type":"string","value":"rightedge"}],"next":{"func":"blockMotionMove","values":[{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockSensingAskAndWait"}

Preguntar y esperar

"Preguntar y esperar" hace una pregunta al usuario y detiene todas las secuencias de comandos hasta que responda.

Parameters:

Texto: este parámetro es el texto de la pregunta que deseas hacer.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"blockSensingAskChoices"}

Preguntar con opciones

"Preguntar con opciones" hace una pregunta y detiene todas las secuencias de comandos hasta que el usuario responda.

Parameters:

Texto: este parámetro es el texto de la pregunta que deseas hacer.

Opciones: uno o más parámetros que serán las opciones para la pregunta.

Related Blocks:
{"func":"valueSensingAnswer"}

Sample Code:
{"func":"blockSensingAskChoices","values":[{"type":"string","value":"Do you want to continue?"},{"type":"string","value":"Yes"},{"type":"string","value":"No"}],"next":{"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"Yes"}]}],"containers":[{"func":"blockLooksSayFor","values":[{"type":"string","value":"Great! Let's get started."},{"type":"number","value":"2"}]},{"func":"blockLooksSayFor","values":[{"type":"string","value":"Bye!"},{"type":"number","value":"2"}]}],"containerLabels":[{"type":"wrapper","func":"nop","values":[],"labelText":"else {button:add}"}]}} Add to my Backpack


{"func":"valueSensingAnswer"}

Respuesta

"Respuesta" devuelve la respuesta del usuario a la última pregunta que hizo el programa.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSensingAskAndWait"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSensingAskAndWait","values":[{"type":"string","value":"What's your name?"}],"next":{"func":"blockLooksSayFor","values":[{"type":"string","value":"Hi"},{"type":"wrapper","func":"valueSensingAnswer"},{"type":"string","value":"!"},{"type":"number","value":"5"}]}}} Add to my Backpack


{"func":"valueSensingMouseX"}

Tocar X

"Tocar X" devuelve la coordenada actual X del punto presionado.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingMouseY"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseY"}

Tocar Y

"Tocar Y" devuelve la coordenada actual Y del punto presionado.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingMouseX"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockLooksSay","values":[{"type":"string","value":"X:"},{"type":"wrapper","func":"valueSensingMouseX"},{"type":"string","value":"Y:"},{"type":"wrapper","func":"valueSensingMouseY"}]}]} Add to my Backpack


{"func":"valueSensingMouseDown"}

¿Presionando la pantalla?

"¿Presionando la pantalla" devuelve un valor verdadero si el usuario está tocando la pantalla, y un valor falso en caso contrario.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingKeyPressed"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"containers":[{"func":"blockPenDown"}]} Add to my Backpack


{"func":"valueSensingKeyPressed"}

¿Tecla presionada?

"¿Tecla presionada?" es verdadero si el usuario está presionando la tecla indicada, y falso en caso contrario.

Parameters:

Tecla: esta es la tecla que quieres comprobar si ha sido presionada por el usuario. Las opciones incluyen "flecha arriba", "flecha abajo", "flecha izquierda", "flecha derecha", "espacio", "Intro" y cualquier tecla con letras o números.

Related Blocks:
{"func":"valueSensingMouseDown"}

Sample Code:
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"rightarrow"}],"next":{"func":"blockMotionPointTowards","values":[{"type":"string","value":"rightedge"}],"next":{"func":"blockMotionMove","values":[{"type":"number","value":"5"}]}}} Add to my Backpack


Screen Size

{"func":"valueSensingScreenLeft"}

Pantalla izquierda

"Pantalla izquierda" devuelve la coordenada X del borde izquierdo.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenRight"}

Pantalla derecha

"Pantalla derecha" devuelve la coordinada X del borde derecho.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenBottom"}

Parte inferior de la pantalla

"Parte inferior de la pantalla" devuelve la coordenada Y de la parte inferior de la pantalla.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingScreenLeft"}

Screen Left

"Screen Left" returns the X coordinate of the left border.

Parameters:

None.

Related Blocks:
{"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenRight"}

Screen Right

"Screen Right" returns the X coordinate of the right border.

Parameters:

None.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenTop"}

Screen Top

"Screen Top" returns the Y coordinate of the top border.

Parameters:

None.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingScreenBottom"}

Screen Bottom

"Screen Bottom" returns the Y coordinate of the bottom border.

Parameters:

None.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingStageProperty"}

Stage Property

"Stage Property" returns the specified property of the Stage.

Parameters:

Property: This parameter is the property of the Stage you want to retrieve. Options include "width," "height," "left," "right," "top," and "bottom."

Related Blocks:
{"func":"valueSensingSpriteProperty"} ,     {"func":"valueVarPropGet"}

Sample Code:
{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpDivide","values":[{"type":"wrapper","func":"valueSensingStageProperty","values":[{"type":"choice","value":"width"}]},{"type":"number","value":"2"}]},{"type":"number","value":"0"}]} Add to my Backpack


{"func":"valueSensingScreenTop"}

Parte superior de la pantalla

"Parte superior de la pantalla" devuelve la coordenada Y de la parte superior de la pantalla.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingStageProperty"}

Propiedad del escenario

"Propiedad del escenario" devuelve la propiedad especificada del escenario.

Parameters:

Propiedad: este parámetro es la propiedad que deseas recuperar del Escenario. Las opciones incluyen "ancho", "alto", "izquierda", "derecha", "parte superior" y "parte inferior".

Related Blocks:
{"func":"valueSensingSpriteProperty"} ,     {"func":"valueVarPropGet"}

Sample Code:
{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpDivide","values":[{"type":"wrapper","func":"valueSensingStageProperty","values":[{"type":"choice","value":"width"}]},{"type":"number","value":"2"}]},{"type":"number","value":"0"}]} Add to my Backpack


{"func":"valueSensingScreenLeft"}

Pantalla izquierda

"Pantalla izquierda" devuelve la coordenada X del borde izquierdo.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenRight"}

Pantalla derecha

"Pantalla derecha" devuelve la coordinada X del borde derecho.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenTop"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueSensingTouchingSprite","values":[{"type":"wrapper","func":"valueOpOr","values":[{"type":"wrapper","func":"valueSensingScreenRight"},{"type":"wrapper","func":"valueSensingScreenLeft"}]}]}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"GameOver"}]}]} Add to my Backpack


{"func":"valueSensingScreenTop"}

Parte superior de la pantalla

"Parte superior de la pantalla" devuelve la coordenada Y de la parte superior de la pantalla.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenBottom"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingScreenBottom"}

Parte inferior de la pantalla

"Parte inferior de la pantalla" devuelve la coordenada Y de la parte inferior de la pantalla.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSensingScreenLeft"} ,     {"func":"valueSensingScreenRight"} ,     {"func":"valueSensingScreenTop"}

Sample Code:
{"func":"blockControlForever","containers":[{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp","next":{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}}}]} Add to my Backpack


{"func":"valueSensingStageProperty"}

Propiedad del escenario

"Propiedad del escenario" devuelve la propiedad especificada del escenario.

Parameters:

Propiedad: este parámetro es la propiedad que deseas recuperar del Escenario. Las opciones incluyen "ancho", "alto", "izquierda", "derecha", "parte superior" y "parte inferior".

Related Blocks:
{"func":"valueSensingSpriteProperty"} ,     {"func":"valueVarPropGet"}

Sample Code:
{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpDivide","values":[{"type":"wrapper","func":"valueSensingStageProperty","values":[{"type":"choice","value":"width"}]},{"type":"number","value":"2"}]},{"type":"number","value":"0"}]} Add to my Backpack