How do I have enemy flee from player?

Get help using Construct 2

Post » Sun Dec 27, 2015 4:52 am

When the player gets within a certain distance of the enemy..trying to get the enemy to flee at a random angle away from the player. Any help would be appreciated
B
21
S
6
Posts: 58
Reputation: 1,385

Post » Sun Dec 27, 2015 5:07 am

Brick by brick, stone by stone.
B
51
S
23
G
15
Posts: 273
Reputation: 11,538

Post » Sun Dec 27, 2015 3:35 pm

lovjc7 wrote:When the player gets within a certain distance of the enemy..trying to get the enemy to flee at a random angle away from the player. Any help would be appreciated


Could you give us more details, Is it a top-down game type or platformer?

If it is a Top-down game type, a non-complex way to make this event:


If Player.X is between Values AI.X - Distance & AI.X + Distance then..

-----> Set AI.Angle to random(360)

Many other ways to do it, depends on the game type and structure.
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
54
S
17
G
90
Posts: 1,111
Reputation: 59,120


Return to How do I....?

Who is online

Users browsing this forum: GabrielBalas, imhotep22, whitephon, zenox98 and 4 guests