Method to move a simulation's camera to another surface
Posted: Tue Jan 18, 2022 6:15 pm
When making menu simulations, you can move the camera using this:
I would like to also add a method that chooses the surface that the camera is looking at. Something like:
This is for creating menu simulations for Space Exploration.
Thanks!
Code: Select all
game.camera_position = {x, y}
game.camera_zoom = 1
Code: Select all
game.camera_surface = game.surfaces["spaceship-surface-1"]
Thanks!