Hi thanks for your reply!
What i meant was when i run each layout(level) individually the enemy behaves the correct way.
BUT when i load the main menu, click on start game, level 1 launches fine, i play through the level and get 10 kills, then level2 launches but the enemy isnt acting correctly at all, not pathfinding to the finish point in the right way at all.
There is global variables, kills, lives, enemy spawn time, but these all get reset at the start of new layout.
I am using tick events just to keep count of the variables, kills and lives. also using a tick event for the camera to set it over enemy every tick. I am wondering do i even need the camera as i am using the scroll to behaviour on the enemy also.
NEW POINT>>>>>> I just added the 'regenerate pathfinding obstacle map' to my event sheet. i added it just underneath the go to next layout condition.. It works a LITTLE, my enemies are now pathfinding correctly!!
1 Problem as always... The first instance of my enemy that is spawned on the new level still acts wrong but the instances of enemies spawned from there on in are acting great and pathfinding correctly.
Just this first spawned enemy now is still wrong...