Keep an object away from another object?

Get help using Construct 2

Post » Thu Aug 29, 2013 11:50 pm

With a top down oriented game, is there a way to keep enemies away from certain environmental pieces?

Specifically, how would I go about telling an enemy that once it gets within a specific range to another object, to then travel in the opposite direction?
B
4
Posts: 78
Reputation: 606

Post » Fri Aug 30, 2013 12:48 am

A few ways off the top of my head. 1. Use the distance expression 2. Create a sprite, like a circle, that goes around the object. Make it invisible and check for collision with it. Collisions still work on invisible objects.
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,667


Return to How do I....?

Who is online

Users browsing this forum: Ashley, dop2000, jatoblendy, MathNook, tarek2, Yahoo [Bot] and 28 guests