#application surface breaks whenever this unrealted code is run
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
if(hor != 0){
view_visible[1] = true;
camera_set_view_pos(cam_hor,stanncam_x()+room_width,stanncam_y());
camera_set_view_size(cam_hor,global.view_w*obj_stanncam.zoom,global.view_h*obj_stanncam.zoom)
outbounds_hor = surface_check_create(outbounds_hor,global.view_w,global.view_h);
view_set_surface_id(1,outbounds_hor);
when i walk to the edge the code above gets run
and somehow that changes the size of the main camera i think. I don't understand why
view_visible[1] = true;
when i disable this line it's fine