Perform an action on all objects touching another object?

From the Asset Store
112 High-Quality destruction sounds for videogames
  • Basically, I have a bunch of different sprites (all of different types) that all have an instance boolean called "carrying." When I left click, I want any of those sprites that are touching the player with carrying value 0 to have value 1, and when I right click, I want any sprites with carrying value 1 to have carrying value 0. Is this possible with a single universal event, or would I have to make an event for each of the sprites?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are running a paid version of construct2, you can use families for this..

    If you are running the free version you will have to make events for all sprites..

    If they are similar enough in behaviour, another way would be to put all the sprites into one object as animations and then you'd only have to reference that sprite..

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