horizontal Movement
Enable horizonal movement of the corgi with the left and right arrow buttons.
corgio.create().horizontalMovement()
Parameters
- on: a boolean value that when
truemoves the corgi sprite horizontally with the left and right arrow buttons.
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
vertical movement, camera follow
corgio