cbcerquiaga / YouMeAndTheEndOfTheWorld

A 2 player RPG set in a post-asteroid Earth and created with the Godot engine
MIT License
13 stars 4 forks source link

Players running into walls while they try to open a door causes crash #212

Open cbcerquiaga opened 5 years ago

cbcerquiaga commented 5 years ago

I can't recreate it consistently, but several times now, a player attempting to open a door in the exploring scene has led to an error "Attempt to call function 'has_method' in base 'null instance' on a null instance" on line 147 of the player 2 script or 143 in the player 1 script. That line reads:

if collision_objects.keys()[i].has_method('handle_collide'):

I think it has to do with colliding with the walls in the scene, and maybe with pressing the button to open doors while the game is still trying to handle the collision.