Use the instance of the object i want

Get help using Construct 2

Post » Sun May 17, 2015 12:33 am

I have an objects named "Enemy"...i have 2 of then

if i do this:

System>Enemy.X-Player.X >=10

witch one of the enemies he will use to calculate...how can i choose the enemy i want
B
4
Posts: 9
Reputation: 214

Post » Sun May 17, 2015 12:43 am

Try

Pick enemy furthest (player.x+10),(player.Y)
Image Image
B
25
S
14
G
138
Posts: 876
Reputation: 72,010

Post » Sun May 17, 2015 1:35 am

I can't find pick furthest inside system :(
B
4
Posts: 9
Reputation: 214

Post » Sun May 17, 2015 1:50 am

It's on the Sprite.
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552

Post » Sun May 17, 2015 10:40 am

Thanks, but that is not i'm looking for .

I have a problem with colission, when one enemy collide with the player all others think they are colliding to.

I wanted to know if there is a way to solve that.
B
4
Posts: 9
Reputation: 214

Post » Sun May 17, 2015 10:45 am

The condition "on collision with another object" should only pick the instances of Enemy that collided with your player.

Don't use the Player's "is overlapping with object" condition, it doesn't pick enemies that collide with Player. If you really want to use it, combine it with "System.For each(Enemy)".
ImageImage
B
44
S
14
G
10
Posts: 166
Reputation: 7,779


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests