2 Instances collision problem

Discussion and feedback on Construct 2

Post » Wed Jul 03, 2013 11:04 am

Goal: create event that prevents enemy from going through other enemies of same type
What event must do-pick 2 instances of enemy and check for colission between them
So the main problem is: how to pick this enemies I know,but how to push 2 instances in collision event I dont know
Something like this I cant do
B
6
S
3
G
1
Posts: 4
Reputation: 1,245

Post » Wed Jul 03, 2013 1:06 pm

Families pick instances separately. So create a new family, add just "Enemy", and then you can say "Enemy: on collision with Family". Then you can also refer to each instance individually by making actions either for Enemy or for Family.
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450

Post » Wed Jul 03, 2013 1:45 pm

Ashley,thank you for your time.It works!
B
6
S
3
G
1
Posts: 4
Reputation: 1,245


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests