Page 1 of 1

Changing render_mode between chart and chart_zoomed_in without changing position

Posted: Sun Mar 24, 2019 12:44 pm
by jarcionek
LuaPlayer has following two functions:
- open_map(position, scale)
- zoom_to_world(position, scale)

However they both require a position and it is not possible to get the position out of the game currently (explanation).

Ideally, I would like the position to be an optional parameter, so that if the map is already open, calling one of these two functions would change the scale and possibly render_mode, but use existing position. In case where map is closed, it would than take player.position instead.