Seasons- A platformer
@Stage\n\nwhen flag clicked\nforever\n    if <(Level) < [6]> then\n        switch backdrop to (summer v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch backdrop to (monsoon v)\n    end\nend\n\nwhen flag clicked\nstart sound [Kalimba v]\nforever\n    if <(Level) = [11]> then\n        switch backdrop to (winter v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        switch backdrop to (outro v)\n        wait (5) seconds\n        stop [all v]\n    end\nend\n\n@Player\n\nwhen flag clicked\nhide\ngo to x: (-213) y: (-111)\ngo to [front v] layer\nset size to (100) %\nswitch costume to (right v)\nset [x vel v] to [0]\nset [y vel v] to [0]\nforever\n    broadcast (Play Game v)\nend\n\nwhen I receive [play game v]\nshow\nPlay Game\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        broadcast (Next Nevel v)\n        go to x: (-213) y: (-111)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (obstacles v)?> or <(y position) = [-180]>> then\n        go to x: (-213) y: (-111)\n    end\nend\n\ndefine Play Game\nif <key (right arrow v) pressed?> then\n    switch costume to (right v)\n    change [x vel v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    switch costume to (left v)\n    change [x vel v] by (-1)\nend\nchange x by (X vel)\nset [x vel v] to ((X vel) * (0.9))\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((X vel) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X vel) > [0]> then\n                                    set [x vel v] to [-10]\n                                else\n                                    set [x vel v] to [10]\n                                end\n                                set [y vel v] to [15]\n                            else\n                                set [x vel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Y vel)\nif <touching (level v)?> then\n    change y by ((Y vel) * (-1))\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <key (up arrow v) pressed?> then\n    if <touching (level v)?> then\n        set [y vel v] to [15]\n    end\nend\nchange [y vel v] by (-1)\nchange y by (1)\n\nwhen I receive [end v]\nhide\n\nwhen [s v] key pressed\nbroadcast (Next Nevel v)\n\nwhen I receive [play game v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (player-right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (player-left v)\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (player-up v)\n    else\n        if <not <key (any v) pressed?>> then\n            switch costume to (player-normal v)\n        end\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (player-up - right v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (player-up - left v)\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen flag clicked\nswitch costume to (l-1 v)\nshow\n\nwhen I receive [next nevel v]\nnext costume\n\nwhen flag clicked\nshow variable [level v]\nforever\n    if <(Level) = [16]> then\n        hide variable [level v]\n        broadcast (End v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Clouds\n\nwhen flag clicked\nhide\ngo to x: (-156) y: (104)\ngo to [back v] layer\nswitch costume to (cloud-1 v)\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch costume to (cloud-2 v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Obstacles\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    if <<<<<(Level) = [1]> or <(Level) = [3]>> or <(Level) = [5]>> or <(Level) = [11]>> or <(Level) = [12]>> then\n        switch costume to (blank v)\n    else\n        if <(Level) = [2]> then\n            switch costume to (o-1 v)\n        else\n            if <(Level) = [4]> then\n                switch costume to (o-2 v)\n            else\n                if <(Level) = [8]> then\n                    switch costume to (o-3 v)\n                else\n                    if <(Level) = [9]> then\n                        switch costume to (o-4 v)\n                    else\n                        if <(Level) = [10]> then\n                            switch costume to (o-5 v)\n                        else\n                            if <(Level) = [13]> then\n                                switch costume to (o-6 v)\n                            else\n                                if <(Level) = [14]> then\n                                    switch costume to (o-7 v)\n                                else\n                                    if <(Level) = [15]> then\n                                        switch costume to (o-8 v)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Snow\n\nwhen I start as a clone\nforever\n    if <(Level) < [16]> then\n        set y to (175)\n        go to x: (pick random (-172) to (159)) y: (89)\n        repeat until <<touching (level v)?> or <touching (obstacles v)?>>\n            change y by (-10)\n        end\n        if <<touching (level v)?> or <touching (obstacles v)?>> then\n            delete this clone\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (228) y: (-167)\ngo to [back v] layer\nforever\n    if <(backdrop [name v]) = [Winter]> then\n        switch costume to (costume2 v)\n        forever\n            show\n            create clone of (_myself_ v)\n            wait (0.2) seconds\n            delete this clone\n        end\n    else\n        hide\n    end\nend\n\ndelete this clone\n\n\n\nwait (0.2) seconds\n\ngo to (random position v)\n\ngo to x: (pick random (-172) to (159)) y: (89)\n\ngo to x: (-172) y: (89)\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        go to x: (-103) y: (-166)\n    end\nend\n\nwhen I receive [end v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\n@Game\n\nwhen flag clicked\nchange [ghost v] effect by (100)\nforever\n    go to [front v] layer\nend\n\n
Welcome to my Platformer!\nPlease Spam the green flag TWICE so there will be no glitches.\nIf it's still laggy then use this- https://scratch.mit.edu/projects/467582494/embed/ \n'S' key to skip the level :)\nUse arrow keys to move!\nIf you enjoy, then click on the grey buttons in the shape of heart and star and make them in colour red and yellow! and also the blue button written 'follow' here- @The_No-1_Scratcher click on it and make it in grey colour! :)\nPlease don't advertise If you do so, sorry but I've to report and delete the comment :(((\n\n\n\n\n\n\n\n\n\n\n\nTAGS~\n#Games#Games#Games#Games#Games#Games\n#Platformers#Platformers#Platformers#Platformers\n#Seasons#Platformer#Seasons#Platformer#Seasons\n#The_No-1_Scratcher#The_No-1_Scratcher#The_No-1_Scratcher\n