Perform an action on all objects touching another object?

Get help using Construct 2

Post » Mon Nov 09, 2015 4:45 am

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?
B
3
Posts: 1
Reputation: 177

Post » Mon Nov 09, 2015 10:38 am

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..
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: Kin, ratboy3, takamoto, tinhofiel and 40 guests