Hello. Although I am a certified expert using another game engine, I am a newbie using Construct (I am testing it before deciding whether to buy it). However, I think I can help you about what you are asking for.
So, I have created a Construct project file that contains the solution to your problem. When you run it in Construct, you will see a player sprite, a chaser sprite, and a wanderer sprite, all of them are restricted to the 8-directions movement.
Here you have the download link:
drive.google.com/file/d/1thuWgXSWBR7WElS5VUihSKgBK1IbiJvV/view