Gobo's world ✦ Multiplayer cloud scrolling platformer v5

Instructions:                                       -DAWN 2-\n                             -BY ENLIGHTENED-\n\n                                       -STORY-\nYou are just taking a brisk walk at the dawn... :D\n\nLOVE AND FAV FOR PART 3\nPART 3 AT 300 LIKES...

@Stage\n\n@player\n\nwhen flag clicked\nhide\n\nwhen I receive [go v]\nset size to (150) %\nswitch costume to (overworld v)\nshow\ngo to x: (-225) y: (-55)\nset [x move v] to [0]\nset [y move v] to [0]\nforever\n    go to [front v] layer\n    if <<(y position) < [-175]> or <touching (stones v)?>> then\n        go to x: (-225) y: (-55)\n        start sound [Drum Boing v]\n        set [x move v] to [0]\n        set [y move v] to [0]\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x move v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x move v] by (1)\n        point in direction (90)\n    end\nend\n\nwhen I receive [go v]\nshow\n\nwhen I receive [go v]\nforever\n    if <<(x position) = [235]> or <(x position) > [235]>> then\n        go to x: (-225) y: (-55)\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching color (#d1ff00)?> then\n        set [y move v] to [16]\n    end\n    if <touching color (#43d0fe)?> then\n        set [x move v] to [0]\n    end\n    if <touching color (#9966ff)?> then\n        set [x move v] to [20]\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-225) y: (-70)\n    end\n    if <touching color (#ff00ba)?> then\n        set [y move v] to [11]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching (portals v)?> then\n        go to x: (portal X) y: (portal Y)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (cave v)\nset size to (120) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [go v]\nswitch costume to (overworld v)\nforever\n    if <(level) = [43]> then\n        repeat until <(level) = [54]>\n            switch costume to (space v)\n        end\n        switch costume to (overworld v)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching color (#ab45ad)?> then\n        set [y move v] to [20]\n        broadcast (animation super jump pad v)\n        hide\n        broadcast (next level v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [show player v]\ngo to x: (-168) y: (-88)\nshow\n\nwhen I receive [go v]\nforever\n    set [x move v] to ((x move) * (0.85))\n    change x by (x move)\n    if <touching (real platformer  v)?> then\n        change y by (-2)\n        if <touching (real platformer  v)?> then\n            change y by (1)\n            if <touching (real platformer  v)?> then\n                change y by (1)\n                if <touching (real platformer  v)?> then\n                    change y by (1)\n                    if <touching (real platformer  v)?> then\n                        change y by (1)\n                        if <touching (real platformer  v)?> then\n                            change y by (1)\n                            if <touching (real platformer  v)?> then\n                                change y by (-5)\n                                change x by ((-1) * (x move))\n                                if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> or <<mouse down?> and <(mouse x) > (x position)>>>> and <not <(x move) = [0]>>> then\n                                    set [y move v] to [8]\n                                    set [x move v] to (((x move) / ([abs v] of (x move) )) * (-10))\n                                else\n                                    set [x move v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [go v]\nforever\n    change y by (-3)\n    if <touching (real platformer  v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y move v] to (Y)\n        end\n    end\n    change y by (3)\n    if <(y move) > [-15]> then\n        change [y move v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching (real platformer  v)?>> then\n        change y by (-1)\n        if <not <touching (real platformer  v)?>> then\n            change y by (-1)\n            if <not <touching (real platformer  v)?>> then\n                change y by (-1)\n                if <not <touching (real platformer  v)?>> then\n                    change y by (-1)\n                    if <not <touching (real platformer  v)?>> then\n                        change y by (-1)\n                        if <not <touching (real platformer  v)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (y move)\n    if <touching (real platformer  v)?> then\n        change y by (-2)\n        if <touching (real platformer  v)?> then\n            change y by ((-1) * (y move))\n            set [y move v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <key (y v) pressed?> then\n        go to x: (-225) y: (-55)\n        broadcast (next level v)\n        wait (9) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [1]> then\n        switch costume to (overworld v)\n    end\n    if <(level) = [8]> then\n        switch costume to (cave v)\n    end\n    if <(level) = [13]> then\n        switch costume to (overworld v)\n    end\n    if <(level) = [16]> then\n        switch costume to (candy land v)\n    end\n    if <(level) = [27]> then\n        switch costume to (overworld v)\n    end\n    if <(level) = [30]> then\n        switch costume to (snow v)\n    end\n    if <(level) = [41]> then\n        switch costume to (space v)\n    end\n    if <(level) = [54]> then\n        switch costume to (desert v)\n    end\n    if <(level) = [65]> then\n        switch costume to (overworld v)\n    end\nend\n\n@eyes\n\ndefine eye blink \nswitch costume to (costume1 v)\nrepeat (9)\n    next costume\nend\nrepeat (9)\n    previous costume\nend\n\ndefine previous costume\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nhide variable [biome v]\nhide\nset size to (150) %\n\nwhen I receive [go v]\nshow\nforever\n    go to (player v)\nend\n\nwhen I receive [go v]\nforever\n    wait (pick random (1) to (10)) seconds\n    eye blink \nend\n\nwhen I receive [go v]\nforever\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <<<mouse down?> and <(mouse x) > (x position)>> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n    end\nend\n\nwhen [b v] key pressed\nshow variable [biome v]\n\n@real platformer \n\nwhen flag clicked\nswitch costume to (costume7 v)\nset [ghost v] effect to (100)\n\nwhen flag clicked\nhide\n\nwhen I receive [go v]\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\n@decorations\n\nwhen flag clicked\nswitch costume to (costume7 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [go v]\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [go v]\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [go v]\nforever\n    if <(level) = [65]> then\n        wait (10) seconds\n        broadcast (THE END :\) v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [go v]\nset [y v] to [7]\nforever\n    if <(level) = [42]> then\n        set [y v] to [10]\n        wait until <(level) = [53]>\n        set [y v] to [7]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [1]> then\n        set [biome v] to [overworld]\n    end\n    if <(level) = [8]> then\n        set [biome v] to [cave]\n    end\n    if <(level) = [13]> then\n        set [biome v] to [overworld]\n    end\n    if <(level) = [16]> then\n        set [biome v] to [candy]\n    end\n    if <(level) = [27]> then\n        set [biome v] to [overworld]\n    end\n    if <(level) = [30]> then\n        set [biome v] to [snow]\n    end\n    if <(level) = [41]> then\n        set [biome v] to [space]\n    end\n    if <(level) = [41]> then\n        set [biome v] to [space]\n    end\n    if <(level) = [54]> then\n        set [biome v] to [desert]\n    end\n    if <(level) = [65]> then\n        set [biome v] to [overworld]\n    end\nend\n\n@loves, favs\n\nwhen I receive [the end :\) v]\nhide\nforever\n    wait (.3) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (pick random (1) to (2))\nset size to (0) %\ngo to (random position v)\npoint in direction (pick random (-180) to (180))\nset [ghost v] effect to (50)\nrepeat (20)\n    change size by (2)\nend\nwait (2) seconds\nrepeat (15)\n    change size by (-2)\nend\ndelete this clone\n\n@Intro\n\nwhen I start as a clone\nif <(id) = [1]> then\n    switch costume to (capture2 v)\n    show\n    go to x: (-240) y: (0)\n    set size to (10) %\n    repeat (2)\n        change x by (6)\n        change size by (5)\n    end\n    repeat (3)\n        change x by (9)\n        change size by (6)\n    end\n    repeat (4)\n        change x by (12)\n        change size by (8)\n    end\n    repeat (3)\n        change x by (12)\n        change size by (8)\n    end\n    repeat (3)\n        change x by (12)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (9)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (5)\n        change size by (4)\n    end\n    repeat (3)\n        change x by (3)\n        change size by (3)\n    end\n    repeat (3)\n        change x by (3)\n        change size by (3)\n    end\n    repeat (3)\n        change x by (2)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (1)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (2)\n        change size by (-6)\n    end\n    repeat (3)\n        change size by (-8)\n    end\n    repeat (4)\n        change size by (-10)\n    end\n    repeat (5)\n        change size by (-14)\n    end\n    broadcast (go v)\n    delete this clone\nend\n\nwhen flag clicked\nhide\nset [id v] to [1]\ncreate clone of (_myself_ v)\n\n@Snow\n\nwhen I start as a clone\npoint in direction (180)\nforever\n    move (5) steps\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (pick random (-237) to (237)) y: (179)\nforever\n    repeat until <touching (real platformer  v)?>\n        repeat (5)\n            turn right (pick random (-4) to (4)) degrees\n        end\n        wait (1) seconds\n    end\n    wait until <touching (real platformer  v)?>\n    forever\n        delete this clone\n    end\nend\n\nwait (0.1) seconds\nrepeat (1)\n    change x by (-2)\nend\nwait (0.1) seconds\nrepeat (1)\n    change x by (2)\nend\n\nwhen I receive [go v]\nhide\nforever\n    if <(level) = [30]> then\n        repeat until <(level) = [41]>\n            wait (0.1) seconds\n            create clone of (_myself_ v)\n        end\n    end\nend\n\n@tumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\n\n@clouds\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (13) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (pick random (1) to (3))\nset size to (pick random (90) to (110)) %\nset [ghost v] effect to (pick random (20) to (40))\nset y to (pick random (100) to (185))\nset x to (301)\nshow\nrepeat until <<(x position) < [-290]> or <(x position) = [-290]>>\n    change x by (-1)\nend\ndelete this clone\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\n@outro\n\nwhen I start as a clone\nif <(id) = [1]> then\n    switch costume to (capture2 v)\n    show\n    go to x: (-240) y: (0)\n    set size to (10) %\n    repeat (2)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (4)\n        change x by (10)\n        change size by (6)\n    end\n    repeat (3)\n        change x by (7)\n        change size by (4)\n    end\n    repeat (3)\n        change x by (3)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (2)\n        change size by (2)\n    end\n    repeat (3)\n        change x by (1)\n        change size by (1)\n    end\n    wait (1) seconds\n    forever\n        repeat (20)\n            change size by (1)\n        end\n        repeat (20)\n            change size by (-1)\n        end\n    end\nelse\n    if <(id) = [2]> then\n        switch costume to (costume2 \(1\)2 v)\n        show\n        go to x: (240) y: (0)\n        set size to (10) %\n        repeat (2)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (4)\n            change x by (-10)\n            change size by (6)\n        end\n        repeat (3)\n            change x by (-7)\n            change size by (4)\n        end\n        repeat (3)\n            change x by (-3)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-2)\n            change size by (2)\n        end\n        repeat (3)\n            change x by (-1)\n            change size by (1)\n        end\n        wait (1) seconds\n        forever\n            repeat (20)\n                change size by (1)\n            end\n            repeat (20)\n                change size by (-1)\n            end\n        end\n    end\nend\n\nwhen I receive [the end :\) v]\nhide\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\n\n@portals\n\nwhen flag clicked\nset [level v] to [1]\nset [ghost v] effect to (30)\nhide\n\nwhen I receive [go v]\nforever\n    if <(level) = [5]> then\n        set [portal x v] to [78]\n        set [portal y v] to [157]\n        go to x: (-141) y: (-75)\n        set [portalx2 v] to (x position)\n        set [portaly2 v] to (y position)\n        spawn portals\n        show\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nif <(id) = [1]> then\n    set [ghost v] effect to (30)\n    switch costume to (costume2 v)\n    go to x: (portal X) y: (portal Y)\n    show\nelse\n    if <(id) = [2]> then\n        set [ghost v] effect to (60)\n        set size to (120) %\n        switch costume to (costume1 v)\n        go to x: ((portalx2) + (1)) y: ((portaly2) + (1))\n        show\n        forever\n            repeat (10)\n                change size by (2)\n            end\n            repeat (10)\n                change size by (-2)\n            end\n        end\n    else\n        if <(id) = [3]> then\n            set [ghost v] effect to (60)\n            set size to (120) %\n            switch costume to (costume2 v)\n            go to x: ((portal X) + (-1)) y: ((portal Y) + (1))\n            show\n            forever\n                repeat (10)\n                    change size by (2)\n                end\n                repeat (10)\n                    change size by (-2)\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(level) = [6]> then\n        hide\n        delete this clone\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <(level) = [6]> then\n        hide\n    end\nend\n\ndefine spawn portals\nset [id v] to [1]\ncreate clone of (_myself_ v)\nrepeat (2)\n    change [id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [go v]\nforever\n    if <(level) = [1]> then\n        set [level v] to [1]\n    end\nend\n\n@animation super jump pad\n\nwhen flag clicked\nhide\n\nwhen I receive [animation super jump pad v]\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (24)\n    next costume\nend\nwait (2) seconds\nrepeat (9)\n    next costume\nend\nbroadcast (show player v)\nhide\n\nwhen I receive [the end :\) v]\nstop [other scripts in sprite v]\nhide\n\n@animation space\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (clone v)\ngo to x: (pick random (-125) to (125)) y: (pick random (-150) to (-50))\nset size to (500) %\nset [ghost v] effect to (50)\nrepeat (15)\n    change size by (4)\nend\n\nwhen I receive [clone delete v]\ndelete this clone\n\nwhen I receive [animation1 v]\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nrepeat (8)\n    go to [front v] layer\n    show\n    create clone of (_myself_ v)\n    change y by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by ((my variable) * (-1))\n    wait (0.01) seconds\nend\ngo to x: (0) y: (0)\nrepeat (13)\n    next costume\nend\nbroadcast (clone delete v)\nrepeat (12)\n    next costume\nend\nwait (1) seconds\nbroadcast (next level v)\nhide\ndelete this clone\n\nwhen I receive [animation2 v]\nshow\nswitch costume to (moon1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nrepeat (8)\n    go to [front v] layer\n    create clone of (_myself_ v)\n    change y by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by ((my variable) * (-1))\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change y by (my variable)\n    wait (0.01) seconds\n    create clone of (_myself_ v)\n    change x by ((my variable) * (-1))\n    wait (0.01) seconds\nend\ngo to x: (0) y: (0)\nrepeat (13)\n    next costume\nend\nbroadcast (clone delete v)\nrepeat (11)\n    next costume\nend\nwait (1) seconds\nbroadcast (next level v)\nhide\ndelete this clone\n\nwhen I receive [go v]\nforever\n    if <<(level) = [53]> or <(level) = [41]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [go v]\nhide\nwait until <(level) = [52]>\nbroadcast (animation2 v)\n\nwhen I receive [go v]\nhide\nwait until <(level) = [41]>\nbroadcast (animation1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [animation2 v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [animation1 v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [animation1 v]\nwait (5) seconds\nbroadcast (clone delete v)\nbroadcast (next level v)\nhide\ndelete this clone\n\n@music nodes\n\nwhen flag clicked\nhide\n\ndefine node\nhide\ngo to x: (-152) y: (125)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    node\n    play sound [paths – cactus flower v] until done\n    switch costume to (costume2 v)\n    node\n    play sound [glide v] until done\n    switch costume to (costume3 v)\n    node\n    play sound [circulate v] until done\nend\n\n