View Single Post
Old 06-28-2009, 08:42 PM   #3 (permalink)
JulianDave
Jr. Zuner
 
Join Date: Sep 2008
Location: Julian, CA
Posts: 47
JulianDave is on a distinguished road
Default

Quote:
Originally Posted by Red Sky View Post
Based off of what you are saying, it would seem that a distance equal to half the width of the 'player' would be a good 'set distance', since you are going from the center of the 'player'.
You have to add half the width of the player with half the width of the object. They would then be just touching. Now that I think about it, this could be done by adding .Height or .Width after the sprite texture to get the specifics of each object, without an array that keeps track of that.

Dave
__________________



JulianDave is offline   Reply With Quote