constantly counting each enemy instance's distance

Get help using Construct 2

Post » Thu Mar 05, 2015 11:48 am

Hy, how can i constantly count the distance between each enemy instance and the player so that at certain value i can trigger events for instances individually?
B
6
Posts: 35
Reputation: 326

Post » Thu Mar 05, 2015 12:20 pm

Use For Each on each enemy and check the distance using distance(player.x,player.y,enemy.x,enemy.y)

The manual is your friend.
B
45
S
16
G
9
Posts: 1,096
Reputation: 11,138

Post » Thu Mar 05, 2015 12:31 pm

Ok, thanks.
B
6
Posts: 35
Reputation: 326

Post » Thu Mar 05, 2015 4:34 pm

Upload a file .capx for help you.
B
45
S
9
G
10
Posts: 195
Reputation: 8,172

Post » Thu Mar 05, 2015 8:00 pm

I need to make a simple enemy AI for a side scrolling beat'em up.. could you help me? Thanks.
B
6
Posts: 35
Reputation: 326

Post » Thu Mar 05, 2015 10:25 pm

I don't see the file .capx, would like to have it, if you can put it up here.
Thank you
renny
B
7
Posts: 53
Reputation: 385

Post » Fri Mar 06, 2015 2:46 pm

..........
Last edited by cristixxx on Fri Mar 06, 2015 7:10 pm, edited 2 times in total.
B
6
Posts: 35
Reputation: 326

Post » Fri Mar 06, 2015 7:07 pm

sadsack wrote:I don't see the file .capx, would like to have it, if you can put it up here.
Thank you
renny

Here is the capx.
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 35
Reputation: 326

Post » Sat Mar 07, 2015 1:12 pm

Still no help? Anyone?
B
6
Posts: 35
Reputation: 326


Return to How do I....?

Who is online

Users browsing this forum: Biim, Rudi55 and 31 guests