Can I put "the power of" in GS?

jb15jb15 Member Posts: 602
edited November -1 in Working with GS (Mac)
I'm working on figuring out the distance between to actors, using the formula seen here:

http://www.purplemath.com/modules/distform.htm

(The power of (x1 - x2)+(y1-y2))

So--can I put "the power of" in GS?

Comments

  • stevethornstevethorn Member Posts: 35
    Magnitude is what you want, I believe.

    example copied from a previous post by TShirtBooth:
    Magnitude(game.firstx-game.secondx,game.firsty-game.secondy)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
  • jb15jb15 Member Posts: 602
    Thanks! Both of your posts were VERY helpful!
Sign In or Register to comment.