Reference

This page has a list of Emoji images and Actions you can use.

Emoji

Use these with myEmoji = Emoji(id), i.e:

myEmoji = Emoji('angry')


airplane

angry

astonished

avocado

balloon

basketball

burger

bus

castle

cat

christmas_tree

clown

controller

cowboy

dog

earth

explosion

falafel

football

fries

grin

guitar

helicopter

house

ill

kiss

laptop

laughing

love

money

monster

mountain

noodles

pasta

pizza

policecar

rain

rocket

rolling

school

shocked

sleepy

smiling

snowman

star

sun

sunglasses

tea

teddybear

thinking

tornado

tree

trophy

unimpressed

volcano

water

worried


Actions

ActionMove

Moves an emoji to a given position.

""" duration :: int
    emoji    :: Emoji
    position :: Vector2
"""
ActionMove(duration, emoji, position)

For example, ActionMove(1000, laughing, Vector2(10, 30)) moves the emoji with variable name laughing to the position (10, 30) in 1000ms (1 second).

ActionScale

Scales an emoji by a given factor.

""" duration :: int
    emoji    :: Emoji
    scale    :: int
"""
ActionScale(duration, emoji, scale)

For example, ActionScale(500, laughing, 2) scales the emoji with variable name laughing by a factor of 2 in 500ms (half a second).

ActionFlipHorz

Flips an emoji horizontally.

""" duration :: int
    emoji    :: Emoji
"""
ActionFlipHorz(duration, emoji)

For example, ActionFlipHorz(1000, laughing) flips the emoji with variable name laughing horizontally in 1000ms (one second).

ActionFlipVert

Flips an emoji vertically.

""" duration :: int
    emoji    :: Emoji
"""
ActionFlipVert(duration, emoji)

For example, ActionFlipVert(1000, laughing) flips the emoji with variable name laughing vertically in 1000ms (one second).

ActionRotate

Rotates an emoji by a given amount.

duration :: int
emoji    :: Emoji
amount   :: int
# where amount is in degrees
ActionRotate(duration, emoji, amount)

For example, ActionRotate(250, laughing, 90) rotates the emoji with variable name laughing by 90 degrees clockwise in 250ms (quarter of a second).

ActionChange

Changes the image of one emoji to another.

""" emoji       :: Emoji
    image_name  :: str
"""
ActionChange(emoji, image_name)

For example, ActionChange(laughing, 'happy') changes the emoji with variable name laughing to use the image 'happy' instead.

Note: this does not play very well with rotation! Use with caution

ActionText

Displays some text for an amount of time.

""" duration :: int
    text     :: str
"""
ActionScale(duration, text)

For example, ActionScale(2000, 'Hello!') displays the text 'Hello!' for 2000ms (two seconds).

ActionChangeBGCol

Changes the colour of the background of a scene.

""" duration :: int
    col      :: (int, int, int)
"""
ActionChangeBGCol(duration, col)

For example, ActionChangeBGCol(1000, COL_RED) changes the background of the scene the action is added to, to COL_RED (red) over 1000ms (one second).