Magnitude - DEMO

firemaplegamesfiremaplegames Member Posts: 3,211
edited November -1 in Working with GS (Mac)
Hey,

I made a little demo showing how to use "magnitude" in the expression editor:
(venon_it was asking for a demo showing something similar)

http://gamesalad.com/game/play/31279

This little demo shows the magnitude function in the expression editor. In particular, this shows the magnitude of a line segment. This is a very useful function for determining how far away two things are from each other. And particularly useful in games as you can trigger certain events based on this distance - such as sound effects or animations - when two actors are close to/far away from each other.

Feel free to use it any way you want to.

Joe

Comments

  • billpaternobillpaterno Member Posts: 26
    hey joe

    I totally needed something like this for my game. So glad you posted it. Thanks!

    Bill
Sign In or Register to comment.