[Solved] Get number of objects passed through?

Get help using Construct 2

Post » Sat Apr 26, 2014 2:41 am

I'm trying to figure out how to detect how many of a certain type of object was passed through during a jump. For example:

Image

In the above screenshot, I have three barrels. Above these three barrels is something I'm calling a "scorebox mask". In the screenshot there are three scorebox masks that are overlapping -- one for each barrel. I have a local variable that is going to be changed when I begin jumping. If I pass through two of these scoreboxes as I jump, I want this variable to be set to 2. If I pass through only one, it'll be set to 1, etc etc.

Any ideas?
Last edited by NeutraLiTe on Sat Apr 26, 2014 2:56 am, edited 1 time in total.
B
4
Posts: 3
Reputation: 208

Post » Sat Apr 26, 2014 2:55 am

Well I feel stupid. I just figured it out on my own. Here's a code snippit for anyone trying to do something similar who stumbles upon this thread:

Image
B
4
Posts: 3
Reputation: 208


Return to How do I....?

Who is online

Users browsing this forum: Linetaru and 9 guests