Hey man,
I see what you're up to.
I modified your capx and corrected your initial event sheet.
I also added another event sheet, called "Improved" which includes a function. Functions make your life way easier and this event sheet is also more compact than your initial one. I added several comments, I hope I can help you. :)
(Switch between the Event Sheets by clicking your Layout and then choosing the Event Sheet on the left)
If you have questions, don't hesitate to ask.
Download: https://www.dropbox.com/s/yvefkfwpm5mnk25/test.capx?dl=1
Btw, you can add as many instances of Sprite2 and change their values to whatever you prefer, my improved version will still work. ;)
(I changed the movement, you now control the Blue Sprite via Drag & Drop)