Ok so what I want to happen is that the entire time of the project a heart is trying to move back. When the heart is touching a border that is 99% invisible I want it to move forward. So, when the heart is touching the border, it stays still. When it's not touching the border, it slowly moves back. Well, at least that's what I want it to do. So, I put these two codes:
Instead of doing what I want it to do, it just scoots back and forth until it's not touching the border and it goes to the end of the screen. I forgot to say, the heart starts on the border. Please help me!