Collision with different instances of the same Object

Get help using Construct 2

Post » Tue Nov 17, 2015 11:54 am

So, I'm having trouble with figuring out how to control which instance is colliding with which. The Object is a Sprite (Enemies) with Physics behavior and they are flying around the screen and the Enemies have 2 bools.
The first bool checks if the Enemy was touched (using touch input) and the second bool checks if the Enemy has been launched. The mechanic that I managed to get with it is that I have to touch the Enemy and swipe to launch it to other Enemies. When the Enemy is launched, then he should collide with other enemies, and the enemies he collided with will be launched somewhere and they too should be able to collide. What I'm having problems with is how to disable collision between enemies who are just flying and have not been launched.
B
7
S
1
Posts: 8
Reputation: 565

Post » Tue Nov 17, 2015 12:19 pm

I guess what I would do is have the sprite spawn another (similar looking) one on touch..
The second one would have collisions with sprite1 enabled..
That way you could always leave the sprite1 collisions with sprite1 disabled..

It would also help getting around the picking nth instance stuff..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Resslx and 27 guests