setCamPos(pos: Vec2): void
Set camera position.
param
pos- The position to set the camera to.
// move camera to (100, 100) setCamPos(100, 100); setCamPos(vec2(100, 100)); setCamPos(100); // x and y are the same
since
v3001.1
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Layer
Camera
Level
Plugins
Button Bindings