Maybe dumb question, should I disable collisions ?

0 favourites
  • 8 posts
  • Should I be disabling collisions for sprites that do not need it? Or will the C2 engine only check for collisions against objects relevant to the event? I have hundreds of instances of sprites that serve as background decoration.

  • well you can just reduce the polygones to the minimum, but leave it active , making disable collision actions, might use resources more than leaving it enabled.

  • You can disable collisions in the object properties, so no events would be needed.

    I always disable collisions for objects that don't need it..

  • Thanks!


    I meant to disable in the GUI, I did not mean calling actions to disable it. However if C2 uses some form of ABBA collisions it might not be necessary?

  • You can disable them in properties, as shown in this screenshot:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I know I can disable them in the object properties, that is what I'm asking about!


    If All Sprites are flagged with collision, will ALL sprites be tested against on each frame


    does C2 use an algorithm similar to ABBA so that only objects relevant to the collision are checked?

    I'll just turn them off to be sure.

  • Of course Construct 2 does not check collisions for any objects if it's not requested by a collision event or behavior. That would be really inefficient and slow down your games for no good reason. So it doesn't do it. Therefore disabling collisions for any objects you don't actually test collisions for has zero effect on performance.

    Even of the objects that are checked for collisions, it only checks nearby objects (using the collision cells optimisation), and of those, it does a really fast AABB rejection test.

  • Awesome, thanks ashley. I had assumed something like that but wasn't sure.

    Ashley you have amazing patience for answering newbie questions. Thank you for that.

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