easy black-platformer

Instructions: Just play!\n----------------------------------------------------------------------------\nhttps://scratch.mit.edu/projects/565655427/remixtree/\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (achtergrond1 v) and wait\n\n@Sprite1\n\nwhen I receive [startgame v]\nwait (0.01) seconds\nshow\nswitch costume to (right v)\nshow variable [level v]\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-195) y: (-76)\nforever\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        set [y velocity v] to [0]\n        set [x velocity v] to [0]\n        go to x: (-195) y: (-76)\n        broadcast (NextLVL v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n        switch costume to (richt v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n        switch costume to (left v)\n    end\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal v)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching (lijn v)?> then\n        change y by (1)\n        if <touching (lijn v)?> then\n            change y by (1)\n            if <touching (lijn v)?> then\n                change y by (1)\n                if <touching (lijn v)?> then\n                    change y by (1)\n                    if <touching (lijn v)?> then\n                        change y by (1)\n                        if <touching (lijn v)?> then\n                            change x by ((x velocity) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(x velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [10]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching (lijn v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (lijn v)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    if <touching (spikes v)?> then\n        go to x: (-214) y: (-90)\n    end\n    if <touching (springplank v)?> then\n        set [y velocity v] to [20]\n        broadcast (spring v)\n    end\n    if <(level) = [5]> then\n        hide variable [level v]\n    end\n    if <touching (bounce pad 2 v)?> then\n        set [y velocity v] to [20]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nshow variable [level v]\nbroadcast (StartGame v)\n\n@lijn\n\nwhen flag clicked\nshow\nset [level v] to [1]\nforever\n    if <(level) = [1]> then\n        switch costume to (uiterlijk1 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (8 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (6 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (uiterlijk3 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (uiterlijk4 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (uiterlijk2 v)\n    end\nend\n\n@spikes\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [2]> then\n        switch costume to (uiterlijk1 v)\n        show\n        wait (2) seconds\n        hide\n        wait (2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        switch costume to (uiterlijk2 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        switch costume to (uiterlijk3 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        switch costume to (uiterlijk4 v)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        switch costume to (uiterlijk5 v)\n        show\n    end\nend\n\n@springplank\n\nwhen I receive [spring v]\nswitch costume to (uiterlijk1 v)\nwait (0.2) seconds\nswitch costume to (2 v)\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [4]> then\n        switch costume to (2 v)\n        show\n    end\n    if <(level) = [5]> then\n        hide\n    end\nend\n\n