Magnitude - DEMO
firemaplegames
Member Posts: 3,211
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
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
I totally needed something like this for my game. So glad you posted it. Thanks!
Bill