Around the world - a platformer - #game #all

Instructions: ↺ AROUND THE WORLD ↺\n\n-Instructions-\nArrow keys or hold down to move.\n\nDon't touch spikes, lava or cold water.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHello there!  Love, fav follow for more!!!!!!!!\nClick here to propose this project to be featured:\nhttps://scratch.mit.edu/studios/4228481/comments/\n\n\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backgroundcastles v)\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        switch backdrop to (backgroundforest v)\n    end\n    if <(level) = [11]> then\n        switch backdrop to (backgroundempty v)\n    end\nend\n\n@Levels\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (dirtmid v)\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        broadcast (new background v) and wait\n    end\nend\n\n@Player\n\nwhen I start as a clone\nchange [ghost v] effect by (20)\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-6)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next level v]\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-220) y: (-100)\nset [ghost v] effect to (0)\n\nwhen flag clicked\nset size to (50) %\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    show\n    set rotation style [all around v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (.8))\n    change x by (Xv)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    set [yv v] to ((Yv) * (0.99))\n    change y by (Yv)\n    if <touching (levels v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [239]> then\n        broadcast (next level v)\n    end\n    if <<touching (danger2 v)?> or <touching (danger v)?>> then\n        broadcast (oh no v)\n        repeat (10)\n            change [ghost v] effect by (2)\n            change size by (-4)\n            turn right (5) degrees\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set size to (50) %\n        set [ghost v] effect to (0)\n        go to x: (-220) y: (-100)\n        point in direction (90)\n    end\n    if <touching (bounce v)?> then\n        set [yv v] to [15]\n    end\n    if <touching (speed v)?> then\n        set [xv v] to [21]\n    end\nend\n\nwhen flag clicked\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-220) y: (-100)\nset [ghost v] effect to (0)\n\n@Danger\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume2 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Danger2\n\nwhen flag clicked\ngo [backward v] (3) layers\nshow\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n@Sprite1\n\nwhen flag clicked\npoint in direction (90)\nrepeat (9)\n    turn left (1) degrees\nend\nrepeat (4)\n    turn left (.5) degrees\nend\nforever\n    repeat (18)\n        turn right (1) degrees\n    end\n    repeat (4)\n        turn right (.5) degrees\n    end\n    repeat (18)\n        turn left (1) degrees\n    end\n    repeat (4)\n        turn left (.5) degrees\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    show\nend\nset size to (25) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (25)\n        repeat until <(size) = [30]>\n            change size by (1)\n        end\n    else\n        set [ghost v] effect to (0)\n        repeat until <(size) = [25]>\n            change size by (-1)\n        end\n    end\nend\n\nwhen this sprite clicked\nbroadcast (next level v) and wait\n\nwhen flag clicked\nforever\n    if <(level) = [18]> then\n        hide\n    end\nend\n\n@audio-150191_960_720\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\nset size to (10) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (25)\n        repeat until <(size) = [15]>\n            change size by (1)\n        end\n    else\n        set [ghost v] effect to (0)\n        repeat until <(size) = [10]>\n            change size by (-1)\n        end\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nrepeat (9)\n    turn left (1) degrees\nend\nrepeat (4)\n    turn left (.5) degrees\nend\nforever\n    repeat (18)\n        turn right (1) degrees\n    end\n    repeat (4)\n        turn right (.5) degrees\n    end\n    repeat (18)\n        turn left (1) degrees\n    end\n    repeat (4)\n        turn left (.5) degrees\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (15) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\nset volume to (15) %\nforever\n    play sound [TheFatRat - Epic \(Jackpot EP Track 2\) v] until done\nend\n\n@Bounce\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <(level) < [7]> then\n        hide\n    end\n    if <(level) = [7]> then\n        go to x: (-65) y: (-105)\n        show\n    end\n    if <(level) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (player v)?> or <touching (sprite2 v)?>> then\n        repeat until <(costume [number v]) = [4]>\n            next costume\n        end\n    else\n        repeat until <(costume [number v]) = [1]>\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nbroadcast (Thanks v)\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    else\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Thanks\n\nwhen I receive [thanks v]\nswitch costume to (costume2 v)\ngo to x: (-210) y: (50)\nshow\ngo to [front v] layer\nstart sound [pop v]\nrepeat (9)\n    change y by (6)\nend\nrepeat (5)\n    change y by (-3)\nend\nrepeat (5)\n    change y by (3)\nend\nwait (1) seconds\nrepeat (10)\n    change y by (-6)\nend\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (-50)\nshow\ngo to [front v] layer\nrepeat (12)\n    change y by (9)\nend\nrepeat (5)\n    change y by (-3)\nend\nrepeat (5)\n    change y by (1)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (50)\n        if <(costume [number v]) = [2]> then\n            if <mouse down?> then\n                set [costume v] to [2]\n                repeat (25)\n                    change y by (-10)\n                end\n                hide\n                delete this clone\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <mouse down?> then\n                    set [costume v] to [1]\n                    repeat (25)\n                        change y by (-15)\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Costume) > [0.99]> then\n        repeat (25)\n            change y by (-15)\n        end\n        hide\n        delete this clone\n    end\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [costume v] to [0.9]\n\nwhen I receive [begin v]\nset [costume v] to [0.9]\nwait (0.1) seconds\nset [costume v] to [0.9]\nwait (0.2) seconds\nset [costume v] to [0.9]\n\n