I got the code from this project https://scratch.mit.edu/projects/25775470/ and added so the scrolling works upwards.