Reverse magnitude
fadamion
Member, PRO Posts: 309
I need to take magnitude and reverse it. So say when I'm far away from an object it is 100 as i get close it is 1 this is how it works normaly. But I need the opposite as i get closer the number gets bigger. I know there will be a negative if i go to far but thats fine. And i guess about 100 as I'm in the center is fine.
This discussion has been closed.
Comments
100 - magnitude
100-magnitude(x1-x2,y1-y2)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks tatiang i was doing the -100 after and it did not work thanks a million.
also you can close this thread i guess i put it as a discussion instead of question