03-15-2020, 01:45 AM
I think this is what you meant to post
![[Image: AU0BNCtBI2msAAAAAElFTkSuQmCC.png]](https://cdn.discordapp.com/attachments/416598001705025539/688623283473744086/AU0BNCtBI2msAAAAAElFTkSuQmCC.png)
You have to check if the player instance exists before actually referencing it.
Do this with the code that's giving the error.
![[Image: AU0BNCtBI2msAAAAAElFTkSuQmCC.png]](https://cdn.discordapp.com/attachments/416598001705025539/688623283473744086/AU0BNCtBI2msAAAAAElFTkSuQmCC.png)
You have to check if the player instance exists before actually referencing it.
Code:
if (instance_exists(obj_mario)) {
//ENTER YOUR CODE HERE
}