The most compact sidescroller Code I could come up with! All the parts of the level are in two sprites, one for the foreground, which you can interact with, and one for the background, which is just for decoration. WARNING - If you want to use this, then I would recommend having an even number of costumes in the level sprite. If you don't have an even number, the game will freak out.
Made by laseredface Character moving script by djpro! It is the best moving script I have ever seen! If you do use this, please give credit!