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.
-> 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.
I've made a few changes and implemented this logic into my larger project. However, I can't seem to get the "action" variable to stick to just the unique enemy instance that I'm within range of... it seems to change the "global" variable for all of the enemies.
You can see the larger project here: skyrunner.kissr.com
The .capx is here: dl.dropboxusercontent.com/u/88974109/Skyrunner.capx
Develop games in your browser. Powerful, performant & highly capable.
your links are dead :(