Scene

Set scene backgrounds and view perspective. Handle interactions between tiles and sprites.

Screen Settings

scene.screenWidth()
scene.screenHeight()
scene.setBackgroundColor(0)
scene.setBackgroundImage(null)
scene.backgroundColor()
scene.backgroundImage()

Tiles and Tilemaps

scene.setTile(0, null)
scene.setTileMap(null)
scene.setTileAt(null, 0)
scene.getTile(0, 0)
scene.getTilesByType(0)
scene.getTile(0, 0).place(null)
scene.placeOnRandomTile(null, 0)
scene.onHitTile(0, 0, function (sprite) {})
sprites.create(null).isHittingTile(CollisionDirection.Left)
sprites.create(null).tileHitFrom(CollisionDirection.Left)

Screen Effects

effects.confetti.startScreenEffect()
effects.confetti.endScreenEffect()

Camera View

scene.cameraFollowSprite(null)
scene.centerCameraAt(0, 0)
scene.cameraShake(4,500)

See also

screen width, screen height, set background color, set background image, background color, background image, set tile, set tile map, set tile at, get tile, get tiles by type, place, place on random tile, on hit tile, is hitting tile, tile hit from, start screen effect, end screen effect, camera follow sprite, center camera at, camera shake