1. How do I compare an object's distance from another object?
2. How do I have an object move towards another?
Printable View
1. How do I compare an object's distance from another object?
2. How do I have an object move towards another?
For distance, you can use the euclidean equation:
Sqr( ((>X Point 1<->X Point 2<) Pow 2)+((>Y Point 1<->Y Point 2<) Pow 2) )
If you're doing a lot of objects, thats very slow because of the square roots, so use this:
((Max(Abs((>X Point 1< - >X Point 2<)), Abs((>Y Point 1< - >Y Point 2<)))) * 0.941246) + ((Min(Abs((>X Point 1< - >X Point 2<) ), Abs((>Y Point 1< - >Y Point 2<)))) * 0.41)
Oh, 2 more things:
3. How would I delay the effect of a condition
4. How can I have an condition that only applies under other conditions?
I'm sorry, but I'm incredibly new to Multimedia fusion 2, and have no Idea what to do with an euclidean equation. Could you please elaborate?Quote:
Originally Posted by Pixelthief
You can use a Timer for a delay.
Set the timer to 0 then
Timer=whatever amout of Time
Do stuff
Marv
You can also use the Advanced Direction Object extension to find the distance between 2 points or 2 objects.