I'm currently trying to replicate a system of battle alike to Pokemon Mystery Dungeon.
The player is in a dungeon with multiple enemies which when close enough, starts to follow the main character.
However I have came across an issue that I can't seem to solve.
Whilst I have created the system in which the enemy follows the main character and waits for your input before they move I can't initiate another trigger loop which activates as soon as the enemy touches you.
As soon as the enemy touches me it needs to trigger a new event.
Is there any way to have another conditional if, inside my loop which escapes when that current event touches the player?
[IMG]http://i.imgur.com/hZdxicC.png[/IMG]
P.S
I have tried tracking the X, Y co-ordinates of both the enemy and the player however I'm unsure of a way to use that as a means of escape for my loop.
The player is in a dungeon with multiple enemies which when close enough, starts to follow the main character.
However I have came across an issue that I can't seem to solve.
Whilst I have created the system in which the enemy follows the main character and waits for your input before they move I can't initiate another trigger loop which activates as soon as the enemy touches you.
As soon as the enemy touches me it needs to trigger a new event.
Is there any way to have another conditional if, inside my loop which escapes when that current event touches the player?
[IMG]http://i.imgur.com/hZdxicC.png[/IMG]
P.S
I have tried tracking the X, Y co-ordinates of both the enemy and the player however I'm unsure of a way to use that as a means of escape for my loop.