I am facing some trouble with the following:
I have two functions: One called when the player takes damage, and another called when it is game over.
When the player takes damage, if there's still hp left, everything goes back to normal, if there's no hp left, the game over function is called.
This is the game-over sequence from the function.
The funny thing is.: When I call the function by itself, it works just fine. But running the code displayed above with the conditions for when the HP gets equal or below 0 (in other words, if the player dies regularly by taking damage in game), the code just ignores everything related to create the 'bg_color_fullscreen' object and only deals with the code related to the player character.
This is what is happening by getting a game over 'normally'
straight-up calling the game over function works as intended.
I tried fixing this for so many hours, but I haven't found the faintest lead on how to solve this.
Could you guys help me on this?
Thanks in advance.