Simple platformer template you can use. You can toggle scrolling on/off. [Reverses the roles of player and wall to represent scrolling]
Scripts are explained inside the project itself. If you want to understand the ideas behind scripts used, see: https://en.scratch-wiki.info/wiki/Advanced_Platformer_Physics How To: Hacked Blocks & Saving Usernames in Cloud: https://scratch.mit.edu/projects/237490124/