distance to multiple objects

Get help using Construct 2

Post » Thu Jun 20, 2013 1:27 pm

Okay, my first project with construct 2 and first game overall and im having a problem now. The Hero runs through a Forest with wolfes standing around. When u approach a wolf the volume of their growling increases and when ur field of view collides with it you die. Problem is that the sound is only working for one instance of the wolf(the first i created) and not for any of the others. Im detecting the volume by distance from the player to the wolf. I added a distance meter(left) and volume meter(right/db) for debugging which only shows the distance to the first wolf. So how can i make it react to the nearest wolf rather than just the first?

http://imgur.com/Vwzq5lM
B
3
G
1
Posts: 2
Reputation: 329

Post » Thu Jun 20, 2013 1:31 pm

Add 'Wolf : pick nearest to player x,y' condition below your 'Every tick' condition.vee412013-06-20 13:31:42
B
24
S
9
G
7
Posts: 756
Reputation: 7,312

Post » Thu Jun 20, 2013 3:00 pm

a helpfull response answer 4 minutes, this community is amazing!
thanks :)
B
3
G
1
Posts: 2
Reputation: 329


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 3 guests