Skip to content

FireMapleGames : Magnitude Demo

$0.00

MagnitudeDemos.zip

Download
Sold By: : GSHelper Categories: ,

This Contains two Project files regarding Magnitude

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.

Magnitude Demo 1:

Click anywhere, the box will move to the mouse position. A path will be drawn from the box to the mouse position as well.

Magnitude Demo 2:

When the blue ball is within 150 pixels of an orange ball, a connection is formed.

feel free to use this as you see fit.

Joe
Fire Maple Games

 

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.