BlocosIA Wiki Editor

3D Characters

Import 3D characters (GLB, FBX, OBJ, STL, VOX…) or create one, and turn them into sprites with costumes animated by direction. The 3D model can also go to the 3D World.

Open the converter with the category button (or the "+" for a new sprite). Animations become costumes like "andar-dir-1". Use "animate the 3D character" and the sprite picks the right costume by direction.

To use it: in the editor, click "Extensions" (bottom corner) and add "3D Characters".

Stack

animate the 3D character: ( ) at ( ) frames per second

Plays an animation made by the 3D characters converter, in a loop. The costume changes by itself according to the sprite direction (up, right, down, left and diagonals).

Stack

animate ( ) once at ( ) frames per second and wait

Plays the animation once (like jump or attack) and then the script continues.

Stack

automatic animation: ( ) when still and ( ) when walking

Switches by itself between the idle animation and the walking one when the sprite moves.

Stack

stop the 3D character animation

Does an action. Snap it below another block.

Stack

show frame ( ) of ( )

Shows a fixed frame of an animation, in the sprite's current direction.

Stack

play ( ) once at ( ) frames per second (without waiting)

Plays the animation once without pausing the script. Combine with "when the 3D animation ends".

Hat

when the 3D animation ends

Starts when an animation played "once" reaches the last frame.

Stack

go to the [next] frame of the animation

Next costume of the animation: shows the next, previous, first, last or a random frame (and stops playing by itself).

Stack

switch to the [next] animation

Switches to the next, previous or a random animation of the character.

Stack

set animation speed to ( ) frames per second

Changes the speed of the playing animation without restarting.

Stack

animation: [pause]

Pauses or resumes the animation from where it stopped.

Stack

use the costumes of direction: [the sprite direction]

Chooses which direction the costumes come from: the sprite's (default) or a fixed one.

Reporter

3D character animation

Gives a number or text. Put it inside a round slot.

Reporter

animation frame

Number of the frame being shown (1 = first).

Reporter

number of frames of ( )

How many frames an animation has.

Reporter

list of animations

List with the names of all animations of this 3D character.

Boolean

do I have the animation ( ) ?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Boolean

did the animation end?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Boolean

is the animation paused?

True if the animation is paused.