Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Thanks for your help :) Got the door working. Revisited this issue today and I had two things to tweak, i had to make the path orange on the tile the door sits and i had two tile ID in the wrong place on the tiles themselves.

So we have to copy and alter each script for each door we put into the game. Would be viable to have perhaps object collision for the doors, that the game wont let you pass and when the door is open that object collision wont be in effect because the way is made open, unless you try to walk into the open door. This might remove the need to have a script for every door. Or alternatively when you copy a script it will increment the number for preset variables reserved for door scripts it. ie. tile01, tile02, tile03 are reserved, and when you copy the open door script the game engine increments each one so we get tile04, tile05, tile06 all we have to do is name the tiles around the door with these. Unless its possible to have the game engine automatically name those tiles? or even have function that automatically creates the script and does those things when you place a door, and attaches script to door.

Doors i imagine would be something a game maker will be adding a lot of so might be worth having something like that, even if we have to name the tiles ourselves but the duplicated script will increment the tile id correctly, this would still be a time saver.