Stencyl 3.4.0 is now out. Get it now!

How do I Check Relative Position?

ozz

  • *
  • Posts: 459
I have two moving actors, I would like to make a looped sound louder as the two actors get closer to one another and less loud as they move away.  How can this be done?

Irock

  • *
  • Posts: 2839
To get the distance between two points:


ozz

  • *
  • Posts: 459
Wow, that really works, thank you.


Innes

  • *
  • Posts: 1963
Wow, that really works, thank you.

It's been working for about 2,500 years, so it should still be good now!

  ;D

Visit www.TheStencylBook.com - the only published book for learning Stencyl.