Photo.fla and ImageObject.as: Add elasticity/fluidity? 
Posted: 30 June 2008 08:47 PM   [ Ignore ]
New Member
Rank
Total Posts:  18
Joined  2008-06-23

I have been playing around with Photo.fla and ImageObject.as to make it load my own xml files and some other custom stuff.  I would like to add some kind of elasticity or fluidity to the movement of the photos.  So when you drag and move a photo, it continues to move a little after you let go of it. 

Does anyone know where and how to add that?

Profile
 
 
Posted: 30 June 2008 09:10 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  18
Joined  2008-06-23

Ha! Nevermind...found it in Physical.as changed

m_force.x *= 0.1;
m_force.y *= 0.1;
m_torque *= 0.1;

to

m_force.x *= 0.9;
m_force.y *= 0.9;
m_torque *= 0.9;

--EDIT--

Also, what is the etiquette for modifying the touchlib .as files?  Obviously I wont upload and overwrite any changes, but do people usually make a copy of the file or directory when they make a change?

Profile