Hello All - I'm attempting to finish the logic needed for the following project: dl.dropboxusercontent.com/u/88974109/enemy_LoS_example.capx
You can try the game here: ephrisian-trial.kissr.com
As you play it, you'll notice that the enemy does the following:
if -> detector IS overlapping player && detector IS NOT overlapping tiles
|
-> enemy follow player
if -> detector IS overlapping tiles && IS NOT within origin
|
-> respawn at origin
However, This is not the ideal situation. I'd like to enemy to follow the player even though the detector hits a tile, but only for a few seconds.
if -> detector IS overlapping player && detector IS NOT overlapping tiles
|
-> enemy follow player
if -> detector IS overlapping tiles && IS NOT within origin
|
-> wait # seconds
-> return to origin
As you can see, I'd like to have the enemy sprite set pathfinding back to it's origin and then follow it. However I have not been successful with that.
Any help is greatly appreciated.