Page 1 of 1

Method to move a simulation's camera to another surface

Posted: Tue Jan 18, 2022 6:15 pm
by Wiwiweb
When making menu simulations, you can move the camera using this:

Code: Select all

game.camera_position = {x, y}
game.camera_zoom = 1
I would like to also add a method that chooses the surface that the camera is looking at. Something like:

Code: Select all

game.camera_surface = game.surfaces["spaceship-surface-1"]
This is for creating menu simulations for Space Exploration.

Thanks!