RPG in a Box

RPG in a Box

View Stats:
interaction script
alright so on interaction with an object i am trying to replace a tile named obstacle1 with a tile named grass so the character can pass through. is this possible?. I have tried with remove_entity but i only get errors returned.

add_tile("grass", coord[-10, -1, 0], "entity_id");

thats all ive got since i gave up on remove_entity. any help would be appreciated!
< >
Showing 1-2 of 2 comments
I figured this out so im gonna reply to myself in case someone else is running into something similar. I had to add entity tags to all objects involved in the map editor. now when i interact with the object, the object blocking the path is removed and leaves a walkable path for the character.
remove_entity(entity["01"]);
modify_navigation("tile_01", "tile_02", WALK_AND_INTERACT);
modify_navigation("tile_02", "tile_03", WALK_AND_INTERACT);
< >
Showing 1-2 of 2 comments
Per page: 1530 50