Sunny Day || A Mobile Friendly Platformer
@Stage\n\nwhen I receive [rain v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [play game v]\nforever\n    play sound [TheFatRat+-+Time+Lapse.mp3 v] until done\nend\n\n@blank\n\n@player\n\ndefine Fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine Y Collision\nrepeat until <not <touching (levels v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine X Collision\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nset size to (30) %\nset [brightness v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (5)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [play game v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [play game v]\nset [level v] to [1]\nshow\ngo to x: (-200) y: (0)\nswitch costume to (right v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (right v)\n        change [x v] by (.8)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (left v)\n        change [x v] by (-.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        Fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            X Collision\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                set [y v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        Y Collision\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\n    if <(x position) > [235]> then\n        broadcast (Next Level / Transition v)\n        go to x: (-200) y: (0)\n        change [level v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<touching (bad bois v)?> or <touching (spinning spikes v)?>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-200) y: (0)\n    end\n    if <touching (tramp v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [setup 4 player v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [reset player v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\n\n@levels\n\nwhen I receive [start da intro boiz v]\nhide\n\nwhen I receive [next level / transition v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\nswitch costume to (level 1 v)\n\nwhen I receive [play game v]\nshow\n\nwhen I receive [someone pressed the skip button v]\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        broadcast (rain v)\n    end\nend\n\n@bad bois\n\nwhen flag clicked\nhide\n\nwhen I receive [next level / transition v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Intro\n\nwhen I start as a clone\nif <(id) = [0]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    switch costume to (bacground v)\n    go to [back v] layer\n    forever\n        if <(GHOOST) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (bacground v)\n            go to [back v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            wait (0.4) seconds\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n    end\nend\nif <(id) = [1]> then\n    go to x: (700) y: (0)\n    show\n    point in direction (90)\n    go to [front v] layer\n    Smooth Glide to x [0] y [0] Speed [4]\n    hide\n    delete this clone\nend\nif <(id) = [2]> then\n    set size to (0) %\n    show\n    switch costume to (logo v)\n    go to [front v] layer\n    go to x: (0) y: (35)\n    repeat (16)\n        turn right (22.5) degrees\n        change size by (6.25)\n    end\n    point in direction (90)\n    set size to (100) %\n    forever\n        if <(Yet) = [0]> then\n            point in direction ((([cos v] of ((OKAY) * (18)) ) * (9)) + (90))\n            change [okay v] by (1)\n        else\n            repeat (24)\n                turn right (-16.875) degrees\n                change size by (-4.6875)\n            end\n            broadcast (fade v)\n            delete this clone\n        end\n    end\nend\nif <(id) = [3]> then\n    point in direction (90)\n    wait (0.5) seconds\n    set [ghost v] effect to (0)\n    switch costume to (costume1 v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    go to x: (700) y: (0)\n    Smooth Glide to x [0] y [0] Speed [4]\n    forever\n        if <(GHOOST) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (costume1 v)\n            go to [front v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            Smooth Glide to x [0] y [25] Speed [3]\n            Smooth Glide to x [0] y [-99] Speed [3]\n            delete this clone\n        end\n    end\nend\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\nwhen I receive [start da intro boiz v]\nset [yet v] to [0]\nstart sound [Nebula v]\nhide\nset [ghoost v] to [0]\nset [okay v] to [0]\nset [id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\nrepeat (3)\n    switch costume to (slide1 v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\n    switch costume to (slide2 v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\nswitch costume to (bacground v)\ncreate clone of (_myself_ v)\nwait (0.8) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [start da intro boiz v]\nset volume to (100) %\nwait (6.00000000) seconds\nset [yet v] to [1]\nset [ghoost v] to [1]\nbroadcast (Play Game v)\n\nwhen I receive [play game v]\nhide\n\n@text stuff\n\nwhen I receive [play game v]\nshow\nrepeat (2)\n    go to [front v] layer\nend\nforever\n    switch costume to (Level)\n    if <touching (player v)?> then\n        set [ghost v] effect to (50)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\n\n@Rain\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-240) to (240)) y: (184)\nglide (pick random (0.005) to (2)) secs to x: (x position) y: (-200)\ndelete this clone\n\nwhen I receive [no rain v]\nhide\n\nwhen I receive [rain v]\nshow\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n    end\n    go to [back v] layer\nend\n\n@thumb\n\nwhen I receive [start da intro boiz v]\nhide\n\nwhen I receive [start da intro boiz v]\nhide\n\nwhen I receive [start da intro boiz v]\nhide\n\nwhen I receive [start da intro boiz v]\nhide\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nshow\nwait (0.8249324) seconds\nbroadcast (start da intro boiz v)\n\n@Sun\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nshow\ngo to x: (22) y: (22)\nset size to (100) %\nswitch costume to (costume1 v)\ngo to [front v] layer\nforever\n    go to [back v] layer\n    repeat (50)\n        change size by (0.1)\n    end\n    repeat (50)\n        change size by (-0.1)\n    end\nend\n\n
        * Sunny Day || A Mobile Friendly Platformer *\n===========================================\n        HIT THE GREEN FLAG TWICE PEOPLE\n\nStory line:\nIt was a nice bright day, you were just taking a walk until it started to rain. Not just rain but raining cats and dogs (not really cats and dogs). Get to shelter as fast as you can. And try not to get wet.\n===========================================\nControls: \nComputer? You can use wasd or arrow keys\n===========================================\nMobile? Tap\n===========================================\n\nPlease drop a ❤️,⭐ I worked hard on this \n\nThanks to @yotacopaco for hosting the contest!\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\nFollow @RQ_6931\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nwhat are you doing .-.