Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The error is because there's no player in the room. One way around it is to use with loops instead which does nothing if there's no object that matches it, try replacing the line with this:

with(obj_player){
    sprite_index = spr_player;
}