tmSetCamera

Category: Tilemap

Syntax:

tmSetCamera:Void(map:Int, x:Int, y:Int)


Parameters

Returns

Void



Summary

Sets the world position at the top left of the screen.

Takes map (The map's handle), x (The world x position, in pixels), y (The world y position, in pixels).

Returns nothing.

View detailed documentation online



Example
tmSetCamera(map, playerX - 640, 0)

BambooBasic © 2026 Michael Denathorn