Methods
-
animation_destroy(object)
-
Destroy all animations on an object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description objectobject to destroy the animations of
Code Equivalent:
object.animations.destroy(); -
animation_next(framecount, objet)
-
Increases the animation by the given number of frames.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description framecountNumber number of frames to advance
objetobject with the animation to change
Code Equivalent:
object.animations.next(framecount); -
animation_next(framecount, objet)
-
Moves the animation backwards by the given number of frames.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description framecountNumber number of frames to move back
objetobject with the animation to change
Code Equivalent:
object.animations.next(framecount); -
Blockly.JavaScript['animation_destroy'](block)
-
Parameters:
Name Type Description blockCode Equivalent:
undefined -
Blockly.JavaScript['animation_next'](block)
-
Parameters:
Name Type Description blockCode Equivalent:
undefined -
Blockly.JavaScript['animation_previous'](block)
-
Parameters:
Name Type Description blockCode Equivalent:
undefined -
Blockly.JavaScript['validate_frames'](block)
-
Parameters:
Name Type Description blockCode Equivalent:
undefined -
get_animation_boolean_field(field, object)
-
Returns the chosen boolean field value of the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to get
objectobject to get values from
Code Equivalent:
object.animations.currentAnim.field = value; -
get_animation_numeric_field(field, object)
-
Returns the chosen numeric field value of the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to get
objectobject to get values from
Code Equivalent:
object.animations.currentAnim.field = value; -
get_animation_string_field(field, object)
-
Returns the chosen string field value of the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to get
objectobject to get values from
Code Equivalent:
object.animations.currentAnim.field -
play_animation(animation, object)
-
Plays an existing animation based on the given tag.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description animationString the name of the animation to play
objectobject to play the animation on
Code Equivalent:
object.animations.play(animation); -
set_animation_boolean_field(field, object, value)
-
Assigns the chosen boolean field for the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to set
objectobject to assign values for
valuevalue to set the field to
Code Equivalent:
object.animations.field = newProperty; -
set_animation_numeric_field(field, object, value)
-
Assigns the chosen numeric field for the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to set
objectobject to assign values for
valuevalue to set the field to
Code Equivalent:
object.animations.field = newProperty; -
set_animation_string_field(field, object, value)
-
Assigns the chosen string field for the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description fieldthe value to set
objectobject to assign values for
valuevalue to set the field to
Code Equivalent:
object.animations.currentAnim.field = value; -
set_frame(object, frameNumber)
-
Sets the frame for the current animation on the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description objectobject to set the animation frame for
frameNumberNumber frame to set the animation to
Code Equivalent:
object.frame = frameNumber; -
stop_animation(object)
-
Stops the current animation on the object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description objectobject to stop the animations on
Code Equivalent:
object.animations.stop(); -
validate_frames(object, frames)
-
Checks if the given frames are valid and exist in the object's animation.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description objectobject to check the animation of
framesArray frames to check
Code Equivalent:
object.animations.validateFrames(frames, true)