vertical Movement

Enable jumping upwards of the corgi sprite with the up arrow button.

corgio.create().verticalMovement()

Parameters

  • on: a boolean value that when true makes the corgi sprite jump vertically upwards with the up arrow button.

Example

Create a new corgi at the default screen location and give it movement.

let myCorg = corgio.create(SpriteKind.Player)
myCorg.verticalMovement(true)
myCorg.horizontalMovement(true)

See also

horizontal movement

corgio