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: 59
Reputation: 1,387

Post » Sun Dec 27, 2015 5:07 am

Brick by brick, stone by stone.
B
56
S
25
G
18
Posts: 273
Reputation: 13,363

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.
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
65
S
21
G
90
Posts: 1,124
Reputation: 59,862


Return to How do I....?

Who is online

Users browsing this forum: Christmas, lohborn, Lordshiva1948 and 5 guests