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
22
S
13
G
135
Posts: 871
Reputation: 70,320

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
21
G
231
Posts: 3,688
Reputation: 129,352

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
42
S
13
G
10
Posts: 164
Reputation: 7,625


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Nicolas951 and 14 guests