I have this in a function, and I want the code to remember my run_once_map_camera_span_calculate = 1 variable, is the only way to declare it as global?
`update camera
if run_once_map_camera_span_calculate = 0
map_test_1_x = 40
map_z# = 25
`calculate horizontal map move span
camera_x_span# = 0.0457
move_camera_x# = scroll_x * camera_x_span#
`calculate vertical map move span
camera_z_span# = (map_z# - 4.83) / 393.0
move_camera_z# = ((scroll_y - 75.0) * camera_z_span#) + 3.5
run_once_map_camera_span_calculate = 1
endif
EDIT: Are constants declared in functions forgotten as well?
The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...