Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Could you fix this bug?

___________________________________________

############################################################################################

ERROR in

action number 1

of  Step Event0

for object roomPusherDownNextObj:

Trying to use non-existing surface.

at gml_Object_roomPusherDownNextObj_Step_0

############################################################################################

gml_Object_roomPusherDownNextObj_Step_0 (line -1)

(1 edit)

Ah geez, that's a strange one. I am surprised it never came up.  That object is responsible for all transitions to the next room going down.  

I think I have rectified it. I have added a check in the step event that now checks to ensure that the surface actually exists before copying it. 

sur_newroom = surface_create(guiWidth,guiHeight);  
if (surface_exists( sur_newroom )) 
{surface_copy(sur_newroom,0,0,application_surface);}

It shouldn't have needed this as the line right before the copy actually creates the surface it so my only guess is it was a frame rate thing. This change should fix the bug.  

Thank you for letting me know!