bark

Make the corgi speak a phrase from a list of known phrases.

corgio.create().bark()

The corgi is “taught” new phrases by adding one with the teach block. A phrase to speak is chosen randomly.

Example

Teach the corgi some new phrases to speak. Every 2 seconds, have the corgi say a phrase.

let myCorg = corgio.create(SpriteKind.Player)
myCorg.verticalMovement(true)
myCorg.horizontalMovement(true)
myCorg.addToScript("bark")
myCorg.addToScript("ruff, ruff")
myCorg.addToScript("ooow, ooow")
myCorg.addToScript("yip, yip")
game.onUpdateInterval(2000, function () {
    myCorg.bark()
})

See also

add to script

corgio