How do I make proximity detection?

Get help using Construct 2

Post » Thu Mar 29, 2012 9:09 pm

I'll keep it short.

- Platformer
- Enemies
- Enemies attack when you're close to them
- They throw snowballs
- Snowballs' direction are fixed.

Is that detailed enough? Anyways, could someone please help me with this problem?
B
5
Posts: 13
Reputation: 401

Post » Thu Mar 29, 2012 9:26 pm

Distance(Object1.x,Object1.y,Object2.x,Object2.y) Will give you the distance between 2 objects.
B
22
S
11
G
9
Posts: 133
Reputation: 6,572

Post » Sat Mar 31, 2012 7:49 am

cool
B
22
S
5
G
3
Posts: 194
Reputation: 5,855

Post » Thu May 23, 2013 8:53 pm

What event would you use?
B
10
S
1
G
1
Posts: 20
Reputation: 619


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], mercuryus and 19 guests