Collision with different instances of the same Object

0 favourites
  • 2 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)