Learn ALICE with Real Code Examples
Updated Nov 25, 2025
Code Sample Descriptions
1
Simple Alice Animation
character.moveForward(2)
character.turnRight(0.25)
character.say('Hello!')
character.turnAround()
A simple program where a 3D character moves forward, waves, and then turns around.
2
Alice - Character Walk Cycle
character.moveForward(1)
character.turnLeft(0.1)
character.turnRight(0.1)
character.moveForward(1)
Simulates a basic walking animation using Alice's motion blocks.
3
Alice - Camera Follow Character
camera.setPointOfView(character)
character.moveForward(3)
camera.moveForward(3)
Moves the camera to follow a character walking.
4
Alice - Character Jump
character.moveUp(1)
character.moveDown(1)
Defines a simple jump using up and down translations.
5
Alice - Simple Dialogue
alice.say('Hi there!')
bob.say('Hello!')
alice.say('How are you?')
bob.say('Doing great!')
Two characters exchange short dialogue lines.
6
Alice - Rotate Object Continuously
while true:
object.turnRight(0.1)
Keeps an object spinning on its axis.
7
Alice - Door Opening Animation
door.turnRight(1.0)
door.turnLeft(1.0)
A door swings open using rotation animation.
8
Alice - Flight Path Motion
bird.moveForward(2)
bird.moveUp(1)
bird.turnLeft(0.25)
bird.moveForward(2)
Simulates a bird following a curved flight path.
9
Alice - Character Dance Loop
for i in range(2):
character.turnRight(0.5)
character.turnLeft(0.5)
character.moveUp(0.5)
character.moveDown(0.5)
A simple dance sequence repeated twice.
10
Alice - Environmental Animation
sun.moveUp(3)
sun.turnRight(0.1)
sun.moveForward(1)
Animates the sun rising over a landscape.