Hi folks! I've had great luck posting here before about weird issues (most end up being human error, ofc lol) - so let's give this one a whirl: I am attempting to get permission from my partner, to post my .c3p file here, as there are a lot of finished assets in there already... but in the mean-time I will try to be as descriptive as possible. (apologies ahead of time, I am having a weird brain day and am also really new to Construct, so my terminology might not be 100% proper xD)
I am creating an RTS/open world/TD game where you place towers and units spawn out of them, path to the enemy's castle and attack enemy units/towers along the way while avoiding your own towers. You are only able to build in the first ~thousand pixels on "your side".
The pathfinding is working PERFECTLY when I load up the level layout itself for testing.
But if you were to play the actual game, you start on a <Main Menu> layout then click start to go to your <Empire> (think Heroes of Might and Magic castle scene). From there you can select a map to play, which will take you to the <level> layout.
The first time played, a brief tutorial will play (which doesn't trigger for some reason when I'm testing the level layout on its own... only when I go in through the main menu... so that could be part of the issue/it seems to connect) and then the player can place towers - this also triggers the AI to build towers, which doesn't happen when I'm launching the level layout alone.
TL/DR? My pathfinding units work perfectly (avoid the custom obstacles while moving along path) when the <Level> layout is launched by itself. But when launching my game from the <main menu>, as intended for the real game, other events seem to be confusing/preventing this pathfinding behaviour from working the same way.
If this is a rookie mistake - something easy that I'm not considering - and I don't need to share my c3p file, that would be preferrable... but let me know if a hands-on view is needed to understand the issue.
Thanks in advance for any help :D