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
S
1
Posts: 78
Reputation: 756

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
12
Posts: 1,549
Reputation: 22,003


Return to How do I....?

Who is online

Users browsing this forum: eca315 and 42 guests