Sometimes...(A platformer)v3.7.1

Instructions: \n                  S   O   M   E   T   I   M   E S...\n            (A    P   L   A   T   F   O   R   M   E   R)\n-------------------------------------------------------------------------\nClick the green flag...\n✦✦TIP: Type 'cheat' in the game when you are playing to go to the next level(not in the comments)✦✦\n✦Click on the screen to skip the intro✦\n✦Sometimes... When you play a ghost may appear and change your level back to 1✦\n✦Click on the screen to skip the intro✦\n✦If you hurry you will get stuck(probably in level 12 \n   you will go a little bit down if you hurry. You will have \n   to start again, not to hurry).\n✦Use opposite WASD or arrow keys to move...\n   It's just easy.\n✦✦TIP: Type 'HELP' in the game when you are playing to go to your default position(not in the comments)✦✦

@Stage\n\nwhen flag clicked\nswitch backdrop to (black v)\n\nwhen I receive [start v]\nswitch backdrop to (yellow v)\n\nwhen I receive [fade v]\nwait (10.7) seconds\nstop all sounds\nset [pan left/right v] effect to (0)\nforever\n    play sound [music v] until done\nend\n\nwhen I receive [bkdrp v]\nswitch backdrop to ( v)\n\nwhen I receive [play recording v]\nswitch backdrop to (yellow v)\n\nwhen I receive [start v]\nforever\n    set [pan left/right v] effect to ([x position v] of [player v])\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n@Intro\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nhide\nwait (0.5) seconds\nshow\nswitch costume to (gradientdark v)\nstart sound [Amjuks Intro  v]\ncreate clone of (_myself_ v)\nswitch costume to (cover black v)\n\nwhen I start as a clone\nshow\npoint in direction (110)\ngo to x: (0) y: (-230)\nglide (1.2) secs to x: (0) y: (-10)\nwait (1) seconds\nglide (1.2) secs to x: (0) y: (230)\nwait (0.6) seconds\nbroadcast (fade v)\ndelete this clone\n\nwhen I receive [fade v]\nswitch costume to (black v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@thumb\n\nwhen flag clicked\nforever\n    set size to (100) %\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\nwhen I start as a clone\nshow\ngo to x: (70) y: (132)\nset [ghost v] effect to (100)\nset size to (90) %\nrepeat (100)\n    go to [front v] layer\n    change [ghost v] effect by (-1)\nend\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (5) seconds\ngo to x: (0) y: (0)\n\nwhen flag clicked\ncreate clone of (_myself_ v)\n\n@player\n\nwhen I receive [start v]\nset [count v] to [0]\nshow\nwait (0) seconds\nset [ghost v] effect to (0)\nbroadcast (start recording preparation v)\nforever\n    if <touching color (#000000)?> then\n        go to x: (-197) y: (-28)\n    end\n    if <(y position) > [180]> then\n        if <(Level) = [2]> then\n            go to x: (-242) y: (85)\n        else\n            if <(Level) = [3]> then\n                go to x: (-242) y: (72)\n            else\n                if <(Level) = [4]> then\n                    go to x: (-242) y: (77)\n                else\n                    if <(Level) = [5]> then\n                        go to x: (-242) y: (78)\n                    else\n                        if <(Level) = [6]> then\n                            go to x: (-242) y: (72)\n                        else\n                            if <(Level) = [7]> then\n                                go to x: (-242) y: (77)\n                            else\n                                if <(Level) = [8]> then\n                                    go to x: (-242) y: (77)\n                                else\n                                    if <(Level) = [9]> then\n                                        go to x: (-242) y: (73)\n                                    else\n                                        if <(Level) = [10]> then\n                                            go to x: (-242) y: (58)\n                                        else\n                                            if <(Level) = [11]> then\n                                                go to x: (-242) y: (-129)\n                                            else\n                                                if <(Level) = [12]> then\n                                                    go to x: (-242) y: (7)\n                                                else\n                                                    if <(Level) = [13]> then\n                                                        go to x: (-242) y: (-20)\n                                                    else\n                                                        if <(Level) = [14]> then\n                                                            go to x: (-242) y: (70)\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        wait until <not <(x position) > [239]>>\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\n    if <(x position) > [239]> then\n        change [level v] by (1)\n        if <(Level) = [2]> then\n            go to x: (-242) y: (85)\n        else\n            if <(Level) = [3]> then\n                go to x: (-242) y: (72)\n            else\n                if <(Level) = [4]> then\n                    go to x: (-242) y: (77)\n                else\n                    if <(Level) = [5]> then\n                        go to x: (-242) y: (78)\n                    else\n                        if <(Level) = [6]> then\n                            go to x: (-242) y: (72)\n                        else\n                            if <(Level) = [7]> then\n                                go to x: (-242) y: (77)\n                            else\n                                if <(Level) = [8]> then\n                                    go to x: (-242) y: (77)\n                                else\n                                    if <(Level) = [9]> then\n                                        go to x: (-242) y: (73)\n                                    else\n                                        if <(Level) = [10]> then\n                                            go to x: (-242) y: (58)\n                                        else\n                                            if <(Level) = [11]> then\n                                                go to x: (-242) y: (-129)\n                                            else\n                                                if <(Level) = [12]> then\n                                                    go to x: (-242) y: (7)\n                                                else\n                                                    if <(Level) = [13]> then\n                                                        go to x: (-242) y: (-20)\n                                                    else\n                                                        if <(Level) = [14]> then\n                                                            go to x: (-242) y: (80)\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        wait until <not <(x position) > [239]>>\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\ngo to x: (-197) y: (95)\nset [x_velocity v] to [0]\nset [y_velocity v] to [0]\nset [allow cheat v] to [yes]\nswitch costume to (1 v)\nforever\n    set [ghost v] effect to (0)\n    show\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x_velocity v] by (-1.3)\n        switch costume to (4 v)\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (3 v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x_velocity v] by (1.3)\n            switch costume to (5 v)\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                switch costume to (2 v)\n            end\n        else\n            switch costume to (1 v)\n        end\n    end\n    set [x_velocity v] to ((X_Velocity) * (0.9))\n    change x by (X_Velocity)\n    change [y_velocity v] by (1)\n    change y by (Y_Velocity)\n    if <touching color (#8500ff)?> then\n        change y by (-1)\n        if <touching color (#8500ff)?> then\n            change y by (-1)\n            if <touching color (#8500ff)?> then\n                change y by (-1)\n                if <touching color (#8500ff)?> then\n                    change y by (-1)\n                    if <touching color (#8500ff)?> then\n                        change y by (-1)\n                        if <touching color (#8500ff)?> then\n                            change x by ((X_Velocity) * (-1))\n                            change y by (5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                set [y_velocity v] to [-15]\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                            else\n                                set [x_velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <touching color (#8500ff)?> 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 color (#8500ff)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y_velocity v] to [-15]\n            switch costume to (2 v)\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\ndelete all of [costume v]\ndelete all of [level v]\ndelete all of [x v]\ndelete all of [y v]\nerase all\nset [allow cheat v] to [no]\nhide\n\nwhen I receive [start recording preparation v]\nwait (1) seconds\nforever\n    repeat until <(play recording??) = [0]>\n        Amjuks | recording preparation\n    end\nend\n\nwhen I receive [play recording v]\nset [count v] to [0]\nstop [other scripts in sprite v]\nrepeat (length of [x v])\n    change [count v] by (1)\n    set x to (item (count) of [x v])\n    set y to (item (count) of [y v])\n    switch costume to (item (count) of [costume v])\n    broadcast (change level costume v) and wait\nend\nbroadcast (Close everything v) and wait\nstop [all v]\n\ndefine Amjuks | recording preparation\nadd ([costume # v] of [level v]) to [level v]\nadd (x position) to [x v]\nadd (y position) to [y v]\nadd (costume [number v]) to [costume v]\n\nwhen I receive [close everything v]\nhide\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [play recording?? v] to [1]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    if <(Level) = [14]> then\n        broadcast (bkdrp v)\n        wait (3) seconds\n        set [level v] to [1]\n        set [play recording?? v] to [0]\n        broadcast (play recording v)\n        set [count v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [play recording v]\nswitch costume to (1 v)\nforever\n    switch costume to (item (count) of [level v])\nend\n\nwhen I receive [close everything v]\nhide\n\n@Game_Intro\n\nwhen flag clicked\nhide\nswitch backdrop to (black v)\n\nwhen I receive [fade v]\nset [sine/cos v] to [0]\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nset [size v] to [0]\nset [amp v] to [0.9]\nset [speed v] to [0.08]\nset size to (100) %\nset [ghost v] effect to (0)\nforever\n    if <not <(costume [number v]) = [12]>> then\n        repeat (100)\n            set y to (([sin v] of (sine/cos) ) * (10))\n            set x to (([cos v] of (sine/cos) ) * (10))\n            point in direction ((([cos v] of (sine/cos) ) * (2)) + (90))\n            change [sine/cos v] by (15)\n        end\n        next costume\n        if <(costume [number v]) = [12]> then\n            hide\n            broadcast (start v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [fade v]\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen I receive [fade v]\ngo to x: (0) y: (0)\nforever\n    repeat (10)\n        change x by (1)\n    end\n    change x by (0.5)\n    repeat (10)\n        change x by (-1)\n    end\n    change x by (-0.5)\nend\n\nwhen I receive [fade v]\nplay sound [music v] until done\n\nwhen I receive [fade v]\nforever\n    if <mouse down?> then\n        hide\n        broadcast (start v) and wait\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [fade v]\nreset timer\nplay sound [music v] until done\n\n@Help\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nset size to (100) %\nforever\n    if <(Level) = [1]> then\n        switch costume to (1 v)\n        show\n        go to x: (0) y: (0)\n        repeat (50)\n            change [ghost v] effect by (1)\n            change size by (0.5)\n        end\n        repeat (50)\n            change [ghost v] effect by (-1)\n            change size by (-0.5)\n        end\n    else\n        if <(Level) = [2]> then\n            switch costume to (2 v)\n            show\n            go to x: (0) y: (0)\n            repeat (50)\n                change [ghost v] effect by (1)\n                change size by (0.5)\n            end\n            repeat (50)\n                change [ghost v] effect by (-1)\n                change size by (-0.5)\n            end\n        else\n            if <(Level) = [5]> then\n                switch costume to (3 v)\n                show\n                go to x: (0) y: (0)\n                repeat (50)\n                    change [ghost v] effect by (1)\n                    change size by (0.5)\n                end\n                repeat (50)\n                    change [ghost v] effect by (-1)\n                    change size by (-0.5)\n                end\n            else\n                hide\n            end\n            hide\n        end\n    end\nend\n\nwhen I receive [play recording v]\nforever\n    set [ghost v] effect to (100)\n    hide\nend\n\n