Platform enemy behavior

Get help using Construct 2

Post » Wed Mar 14, 2012 4:01 pm

how do i something like that: when i step closer to the enem from left side he turn to player direction or whel i go closer wrom the right side he turn to right (?)
B
170
S
3
G
2
Posts: 65
Reputation: 6,057

Post » Wed Mar 14, 2012 4:08 pm

You can use the directive [code]distance(x1,y1,x2,y2)[/code] to determine how close the player is. And you can compare player X and Enemy X to see if you are left or right of the foeWeishaupt2012-03-14 16:18:44
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Mar 14, 2012 4:14 pm

yes i read another topics and other says this same as you but i dont know where i find this conditions. I look in 'system' and player/enemy conditions
B
170
S
3
G
2
Posts: 65
Reputation: 6,057

Post » Wed Mar 14, 2012 4:19 pm

You have to "type" the directive in the inputbox of the compare event.
B
42
S
19
G
12
Posts: 723
Reputation: 13,911


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 23 guests