Object

Last modified by admin on 2023/09/18 12:42

General objects

transparencyGives you the transparency of the object, for example use the 'change transparency by' brick and then control the transparency with an 'if...is true then' brick.
brightnessGives you the brightness of the object, for example use the 'change brightness by' brick and then control the brightness with an 'if...is true then' brick.
colourGives you the color of the object, for example use the 'set colour to' brick and then check the color with an 'if...is true then' brick.
look numberEvery object has a look number, look number 1 is the first look and look number 2 is the second and so on.
look nameEvery object also has a look name, every time you insert a new look to an object you give it a look name.

Motion objects

position_xGives the current position_x of the object
position_yGives the current position_y of the object
sizeCheck the current size of the object
directionGives the direction of the object, combine it with the 'Point in direction' brick and for example the if...then' brick
layerProvides the actual layer of the object
touches actor or objectGives a true when the object touches actors or an other object
touches edgeGives a true when the object touches edge
touches fingerGives a true when the object touches a finger
x velocityGives the current velocity in x-direction
y velocityGives the current velocity in y-direction
angular velocityGives the current angular velocity