camera Follow
Enable the scene camera to follow the corgi sprite.
corgio.create().cameraFollow(true)
Parameters
- on: a boolean value that when
truemakes the scene camera follow the corgi sprite.
Example
Make the scene camera view follow the corgi.
let myCorg = corgio.create(SpriteKind.Player, 10, 80)
myCorg.verticalMovement()
myCorg.horizontalMovement()
myCorg.cameraFollow()
See also
horizontal movement, vertical movement
corgio