How do I Control Enemy Movement

Get help using Construct 2

Post » Tue May 13, 2014 9:24 am

Hey there,
I've done an extensive search of the forums and read through the manual a few times now but I can't seem to figure out how to implement enemy AI. Basically, I added Line-Of-Sight and the Pathfinding behaviour to my enemy sprite. When a clear sight was found on my Player X/Y then the pathfinding behaviour would move to that location. At least that's what I tried to make it do.

The enemy never seems to move at all. I thought maybe I have to control the 8-direction movement behaviour but that's beyond my abilities, I think. Has anyone gotten enemy movement to work and can shed some light on how I should handle this?

Thank You
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Tue May 13, 2014 8:26 pm

Heve a look at this topic: https://www.scirra.com/forum/viewtopic.php?f=147&t=103574

@jcook made a system using the tools you describe and his final capx works beautifully.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed May 14, 2014 12:03 am

Thank you, I'll try out the capx tonight when I get home.

Edit:
Beautiful, @eli0s I will start working on implementing this into my game right away! :)
B
56
S
15
G
13
Posts: 826
Reputation: 17,645

Post » Wed May 14, 2014 11:46 am

Well, you should thank jcook, it's his example after all ;)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Lancifer, richcoz81 and 24 guests