Need help with storing object count within certain range

Get help using Construct 2

Post » Tue Dec 27, 2016 11:36 pm

So here is the thing.

My game involves turrets. However, when there are 5 turrets within a certain preset range (priority nearest) of eachother, i want the player to be able to promote them by tapping a sprite that will then appear.

I can't figure out how to store or even pick the nearest object within that range and make them count properly. what comes after that is no problem at all.
I should also note that the turrets are all the same sprite (for that type of turret).

Thanks in advance for any help.

- Grapjas
B
3
Posts: 5
Reputation: 200

Post » Wed Dec 28, 2016 10:57 pm

It is not hard to count object number within certain condition. You can use distance as range condition then use PickedCount to retrieve the number for example.
ImageImage
B
115
S
51
G
24
Posts: 790
Reputation: 23,505


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests