Function
center
(): Vec2Get the center point of view.
// add bean to the center of the screen
add([
sprite("bean"),
pos(center()),
// ...
])returns The center point of the view.
since v2000.0
group Info
Get the center point of view.
// add bean to the center of the screen
add([
sprite("bean"),
pos(center()),
// ...
])returns The center point of the view.
since v2000.0
group Info
Assets
Game Obj
Components
Component Types
Scene
Input
Events
Info
Math
Layer
Camera
Layers
Level
Draw
Plugins
Button Bindings
GFX
Miscalenous