Z
zendraw
Guest
Hi,
so recently for some reason ive been getting a black screen after i switch rooms. at first i thought it was the transition code but i narrowd it down to simply room_goto and i get it again. another odd thing is that i dont get when i switch to all rooms, only to some. in one of the rooms i get the black screen i have only 1 type of object which has no code or w/e, it acts as a solid but doesnt have the solid check on it. littelary no other objects and i get the black screen. oh and i must point out its not a depth problem, i tryed putting player object above all other and nothing also the view is on the player becouse i can hear when i jump or do somthing(i set listener position to the player).
i really have no idea why im getting this black screen and it doesnt seem related to my codes. any ideas?
EDIT: okay so when i remove this code i dont get the black screen anymore
this code runs at the start of every room and like i sayd i get the black screen only in some rooms not all.
so recently for some reason ive been getting a black screen after i switch rooms. at first i thought it was the transition code but i narrowd it down to simply room_goto and i get it again. another odd thing is that i dont get when i switch to all rooms, only to some. in one of the rooms i get the black screen i have only 1 type of object which has no code or w/e, it acts as a solid but doesnt have the solid check on it. littelary no other objects and i get the black screen. oh and i must point out its not a depth problem, i tryed putting player object above all other and nothing also the view is on the player becouse i can hear when i jump or do somthing(i set listener position to the player).
i really have no idea why im getting this black screen and it doesnt seem related to my codes. any ideas?
EDIT: okay so when i remove this code i dont get the black screen anymore
Code:
view_wport[0]=display_get_width();
view_hport[0]=display_get_height();
var scrn=view_wport[0]/view_hport[0];
view_wview[0]=640;
view_hview[0]=view_wview[0]/min(scrn, 1.25);
view_hborder[0]=view_wview[0];
view_vborder[0]=view_hview[0];
surface_resize(application_surface, display_get_width(), display_get_height());
Last edited: