Problem with Respawning and collisions

Hey guys! I'm back, and I have a problem! Haha
I have an actor that changes it's self attributes named X and Y to it's current position each level. If I touch the screen the actor moves to the place I touched (by interpolating it's position to the touch position) and if it hits a wall, I have it go back to it's self X and Y attributes. But if I touch beyond a wall, it goes right through it.
How do I fix this? Should I change the interpolate to accelerate towards?
I have an actor that changes it's self attributes named X and Y to it's current position each level. If I touch the screen the actor moves to the place I touched (by interpolating it's position to the touch position) and if it hits a wall, I have it go back to it's self X and Y attributes. But if I touch beyond a wall, it goes right through it.
How do I fix this? Should I change the interpolate to accelerate towards?
Comments
Basically, this is what you do...
RULE
If mouse is down
RULE All Apply
TouchX < RightWallX - (RightWallWidth/2)
TouchX > LeftWallX + (LeftWallWidth/2)
TouchY > DownWallY + (DownWallHeight/2)
TouchY < UpWallY - (UpWallHeight/2)
Interpolate position to touch position
OTHERWISE (IN 2ND RULE)
Move back to original positions
That is not exactly what I ment, lol. By walls I ment obsticals and things.
Btw, could you get on skype?