Does the issue occur in the editor or during gameplay?
Gameplay
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
Grid Movement, Third-Person
Briefly describe the issue you're experiencing:
After modifying navigation for a tile during gameplay, the Player will become stuck, unable to move at all. Debugging Navigation Paths shows that the navigation was updated correctly.
Are there any errors in the in-game debug console or external console window?
External Console Window:
SCRIPT ERROR: get_speed: Invalid get index 'is_conveyor' (on base: 'previously freed instance').
At: res://character.gde:744
SCRIPT ERROR: process_movement: Invalid operands 'float' and 'Nil' in operator '*'.
At: res://character.gde:1571
The above will be endlessly printing until the game is closed.
Provide the steps necessary to reproduce the issue:
In a barebones project, create a script, name it whatever you like. Paste the following into the script:
for $tilep in player.tiles do
$tilecoordx = $tilep.coord.x;
$tilecoordy = $tilep.coord.y;
$northtile = tile[$tilecoordx, $tilecoordy + 1, 0];
$southtile = tile[$tilecoordx, $tilecoordy - 1, 0];
$easttile = tile[$tilecoordx + 1, $tilecoordy, 0];
$westtile = tile[$tilecoordx - 1, $tilecoordy, 0];
set_player_movement_locked(true);
put_player($northtile);
remove_entity($tilep);
add_tile("grass", $tilep.coord, "NEWTILE");
modify_navigation("NEWTILE", $northtile, WALK_AND_INTERACT);
modify_navigation("NEWTILE", $southtile, WALK_AND_INTERACT);
modify_navigation("NEWTILE", $easttile, WALK_AND_INTERACT);
modify_navigation("NEWTILE", $westtile, WALK_AND_INTERACT);
assign_entity_id("NEWTILE", "");
set_player_movement_locked(false);
end;
Save, then set the script to be activated via a button press (or execute it in the debug menu). You will notice after activating the script, the player will not move, and the console will endlessly print the above messages.
Provide a download link to the bare bones project (if applicable):
I do not believe this is needed but am willing to provide if needed. The above code copy/paste should be adequate.