I do not understand this error

Godot Version

V4.3

Question

I am getting the above error, and I’m thoroughly confused by it. I only get it when I change floors, and if there is no action detected, it is supposed to return null.

When the game first starts, the map is generated procedurally and this error doesn’t occur. But when I shift to the next floor, this error occurs after generating the new floor.

I had recently rebuilt my Tile management system, and so this error didn’t occur in the old Tile management system, but it does now, and I don’t understand the error or how to fix it.

MPDT.Player has been freed, guessing changing floors changes the scene and/or deletes everything. You probably want to test if the player is valid before doing this, or pause this function when the game changes scene.

2 Likes

Ahhh. Okay, I’ll investigate that and try to resolve that. Thanks!

Yep, that was the problem.

Found where it was freeing the MPDT.Player, and addressed that logic error, and now it shifts floors properly!

Thanks again!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.