Colors || a platformer [3]                                                  

Instructions: Hello Everyone! \n-PART TWO WILL HAVE MY OWN LEVEL DESIGNS!\nStory:\nPlatformer Scientists have found portals to other platformers! You must visit these platformers to gather information about the other realms!\n\nSo I picked "3 realms" to visit and made them into one platformer! Hope you Enjoy! Please spread this to MORE\nScratchers! \n\n-All level designs are by me || Except the floor design-\n-I asked permission for all level owners-\n\nCheck out the "Platformer Realms" I used:\n1.Elements, a platformer by @Chr_Avila_07663, @YungSky ,and @Kookycat18\n 2.Super Stickman Dash by @0014049\n3. The Platformer Realms by @yotacopaco\n\nLinks to Platformers up above:\n1. https://scratch.mit.edu/projects/414476418/\n2. https://scratch.mit.edu/projects/396758533/\n3. Your playing it right now!\n\n@QuaXX for "portals"\n\n-@yotacopaco out-\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\nFollow me?\nJust Kidding\nBut please do it :)

@Stage\n\nwhen flag clicked\nforever\n    if <(username) = [Travister88]> then\n        if <key (space v) pressed?> then\n            ask [TELEPORT TO LEVEL:] and wait\n            set [level! v] to (answer)\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Super World v] until done\nend\n\nwhen I receive [play! v]\nset [time! v] to []\nhide variable [time! v]\nreset timer\nwait until <(LEVEL!) = [19]>\nset [time! v] to (timer)\nshow variable [time! v]\n\n@Player HITBOX!\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (-30)\n\nwhen flag clicked\ngo to x: (-216) y: (-50)\nset size to (60) %\nshow\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        if <(CROUCHING!) = [1]> then\n            change [x velocity v] by (-.3)\n        else\n            if <(POWERUP!) = [4]> then\n                change [x velocity v] by (-.2666)\n            else\n                change [x velocity v] by (-.8)\n            end\n        end\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        if <(CROUCHING!) = [1]> then\n            change [x velocity v] by (.3)\n        else\n            if <(POWERUP!) = [4]> then\n                change [x velocity v] by (.2666)\n            else\n                change [x velocity v] by (.8)\n            end\n        end\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <<touching (ground! v)?> or > then\n        change y by (1)\n    end\n    if <<touching (ground! v)?> or > then\n        change y by (1)\n    end\n    if <<touching (ground! v)?> or > then\n        change y by (1)\n    end\n    if <<touching (ground! v)?> or > then\n        change y by (1)\n    end\n    if <<touching (ground! v)?> or > then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <(POWERUP!) = [3]> then\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                start sound [Suction Cup v]\n                if <(X Velocity) > [0]> then\n                    set [x velocity v] to [-10]\n                else\n                    set [x velocity v] to [10]\n                end\n                set [y velocity v] to [13]\n            else\n                set [x velocity v] to [0]\n            end\n        end\n    end\n    set [on ground! v] to [0]\n    if <(POWERUP!) = [4]> then\n        change [y velocity v] by (-0.333)\n    else\n        change [y velocity v] by (-1)\n    end\n    change y by (Y Velocity)\n    if <<touching (ground! v)?> or > then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [on ground! v] to [1]\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<<touching (ground! v)?> or > and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        start sound [Jump v]\n        if <(POWERUP!) = [1]> then\n            set [y velocity v] to [16]\n        else\n            if <(POWERUP!) = [4]> then\n                set [y velocity v] to [4]\n            else\n                set [y velocity v] to [12]\n            end\n        end\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        change [level! v] by (1)\n        broadcast (Reset v)\n    end\n    if <<touching (danger! v)?> or > then\n        start sound [Tennis Hit v]\n        broadcast (Reset v)\n        create clone of (player! v)\n    end\n    if <(y position) = [-178]> then\n        start sound [Tennis Hit v]\n        broadcast (Reset v)\n        create clone of (player! v)\n    end\nend\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    if <(ON GROUND!) = [0]> then\n        if <(Y Velocity) > [0]> then\n            broadcast (UP! v)\n        else\n            broadcast (DOWN! v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (normal! v)\n    if <(POWERUP!) = [2]> then\n        if <(ON GROUND!) = [1]> then\n            if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n                switch costume to (crouching! v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(POWERUP!) = [4]> then\n        set size to (20) %\n    else\n        set size to (60) %\n    end\nend\n\nwhen I receive [unshrink! v]\nchange y by (20)\n\n@GROUND!\n\nwhen flag clicked\nset [level! v] to [1]\nforever\n    switch costume to (LEVEL!)\n    go to x: (0) y: (0)\n    show\nend\n\n@Player!\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    go to (player hitbox! v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        set [running! v] to [1]\n    else\n        set [running! v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ON GROUND!) = [1]> then\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n            if <(CROUCHING!) = [0]> then\n                switch costume to (running!1 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!2 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!3 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!4 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!3 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!2 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!1 v)\n                wait (FRAMESPEED!) seconds\n                switch costume to (running!5 v)\n                wait (FRAMESPEED!) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [framespeed! v] to [.02]\nforever\n    if <<(ON GROUND!) = [1]> and <(RUNNING!) = [0]>> then\n        switch costume to (normal! v)\n        wait (.2) seconds\n        switch costume to (normal!2 v)\n        wait (.2) seconds\n        switch costume to (normal!3 v)\n        wait (.2) seconds\n        switch costume to (normal!2 v)\n        wait (.2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        broadcast (Reset v)\n        wait until <not <key (r v) pressed?>>\n    end\nend\n\nwhen I receive [up! v]\nswitch costume to (jumping!1 v)\n\nwhen I receive [down! v]\nswitch costume to (jumping!2 v)\n\nwhen flag clicked\nforever\n    if <(POWERUP!) = [2]> then\n        if <(ON GROUND!) = [1]> then\n            if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n                switch costume to (crouch!1 v)\n                if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                    repeat (8)\n                        switch costume to (crouch!2 v)\n                    end\n                end\n                if <(CROUCHING!) = [1]> then\n                    repeat (8)\n                        switch costume to (crouch!1 v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [crouching! v] to [0]\n    if <(POWERUP!) = [2]> then\n        if <(ON GROUND!) = [1]> then\n            if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n                set [crouching! v] to [1]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(POWERUP!) = [4]> then\n        set size to (20) %\n    else\n        set size to (60) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(RAINBOW!) = [1]> then\n        change [color v] effect by (5)\n    else\n        clear graphic effects\n    end\nend\n\n@POWERUP!2\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nshow\nforever\n    switch costume to (POWERUP!)\n    go to [front v] layer\n    if <(POWERUP!) = [0]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (z v) pressed?> then\n        if <(POWERUP!) = [4]> then\n            broadcast (UNSHRINK! v)\n        end\n        set [powerup! v] to [0]\n        start sound [Wood Tap v]\n        broadcast (SWITCH! v)\n        wait until <not <key (z v) pressed?>>\n    end\nend\n\nwhen I receive [switch! v]\ngo to x: (5) y: (5)\nrepeat (5)\n    change y by (-1)\n    change x by (-1)\nend\ngo to x: (0) y: (0)\n\n@DETAILS!\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (LEVEL!)\n    go to x: (0) y: (0)\n    show\nend\n\nwhen I receive [reset v]\ngo to [back v] layer\n\n@DANGER!\n\nwhen flag clicked\nset [level! v] to [1]\nforever\n    switch costume to (LEVEL!)\n    go to x: (0) y: (0)\n    show\nend\n\n@SUN!\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL!)\n    go to x: (150) y: (100)\n    go to [back v] layer\n    show\nend\n\nwhen flag clicked\nforever\n    set size to (50) %\n    repeat (50)\n        change size by (.3)\n    end\n    repeat (50)\n        change size by (-.3)\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nforever\n    turn left (.5) degrees\nend\n\n@POWERUP!1\n\nwhen flag clicked\nset [powerup! v] to [0]\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nset [powerup! v] to [0]\nhide\nwait (0) seconds\nif <(LEVEL!) = [4]> then\n    go to x: (-70) y: (-60)\n    broadcast (SPRING BOOTS! v)\nend\nif <(LEVEL!) = [5]> then\n    go to x: (-150) y: (-60)\n    broadcast (SPRING BOOTS! v)\nend\nif <(LEVEL!) = [8]> then\n    go to x: (-200) y: (85)\n    broadcast (SPRING BOOTS! v)\nend\nif <(LEVEL!) = [12]> then\n    go to x: (-170) y: (-60)\n    broadcast (SPRING BOOTS! v)\nend\nif <(LEVEL!) = [14]> then\n    go to x: (60) y: (-60)\n    broadcast (SPRING BOOTS! v)\nend\nif <(LEVEL!) = [15]> then\n    go to x: (-202) y: (50)\n    broadcast (SPRING BOOTS! v)\nend\n\nwhen I receive [reset v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [spring boots! v]\nclear graphic effects\nset size to (30) %\nshow\nwait until <<touching (player hitbox! v)?> and <(POWERUP!) = [0]>>\nset [powerup! v] to [1]\nbroadcast (SWITCH! v)\nstart sound [Collect v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (3)\nend\nhide\n\nwhen I receive [spring boots! v]\nforever\n    repeat (10)\n        change y by (-.5)\n    end\n    repeat (10)\n        change y by (.5)\n    end\nend\n\n@WORDS!\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL!)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\nend\n\n@POWERUP!3\n\nwhen flag clicked\nset [powerup! v] to [0]\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nset [powerup! v] to [0]\nhide\nwait (0) seconds\nif <(LEVEL!) = [6]> then\n    go to x: (-170) y: (-70)\n    broadcast (CROUCH! v)\nend\nif <(LEVEL!) = [8]> then\n    go to x: (-85) y: (-60)\n    broadcast (CROUCH! v)\nend\nif <(LEVEL!) = [12]> then\n    go to x: (-50) y: (-60)\n    broadcast (CROUCH! v)\nend\nif <(LEVEL!) = [14]> then\n    go to x: (-76) y: (-67)\n    broadcast (CROUCH! v)\nend\nif <(LEVEL!) = [15]> then\n    go to x: (135) y: (150)\n    broadcast (CROUCH! v)\nend\n\nwhen I receive [reset v]\ngo to [front v] layer\n\nwhen I receive [crouch! v]\nclear graphic effects\nset size to (30) %\nshow\nwait until <<touching (player hitbox! v)?> and <(POWERUP!) = [0]>>\nset [powerup! v] to [2]\nbroadcast (SWITCH! v)\nstart sound [Collect v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (3)\nend\nhide\n\nwhen I receive [crouch! v]\nforever\n    repeat (10)\n        change y by (-.5)\n    end\n    repeat (10)\n        change y by (.5)\n    end\nend\n\n@POWERUP!4\n\nwhen flag clicked\nset [powerup! v] to [0]\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nset [powerup! v] to [0]\nhide\nwait (0) seconds\nif <(LEVEL!) = [7]> then\n    go to x: (-150) y: (-73)\n    broadcast (WALLJUMP! v)\nend\nif <(LEVEL!) = [8]> then\n    go to x: (50) y: (165)\n    broadcast (WALLJUMP! v)\nend\nif <(LEVEL!) = [12]> then\n    go to x: (80) y: (-60)\n    broadcast (WALLJUMP! v)\nend\nif <(LEVEL!) = [15]> then\n    go to x: (25) y: (-97)\n    broadcast (WALLJUMP! v)\nend\nif <(LEVEL!) = [18]> then\n    go to x: (-216) y: (-60)\n    broadcast (WALLJUMP! v)\nend\n\nwhen I receive [reset v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [walljump! v]\nclear graphic effects\nset size to (30) %\nshow\nwait until <<touching (player hitbox! v)?> and <(POWERUP!) = [0]>>\nset [powerup! v] to [3]\nbroadcast (SWITCH! v)\nstart sound [Collect v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (3)\nend\nhide\n\nwhen I receive [walljump! v]\nforever\n    repeat (10)\n        change y by (-.5)\n    end\n    repeat (10)\n        change y by (.5)\n    end\nend\n\n@MOVING PLATFORMS!1\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nhide\nwait (0) seconds\nif <(LEVEL!) = [9]> then\n    switch costume to (costume1 v)\n    go to x: (-113) y: (-111)\n    show\n    forever\n        glide (3) secs to x: (114) y: (-111)\n        glide (3) secs to x: (-113) y: (-111)\n        go to x: (-113) y: (-111)\n    end\nend\nif <(LEVEL!) = [10]> then\n    switch costume to (costume2 v)\n    go to x: (-83) y: (-110)\n    show\n    forever\n        repeat (100)\n            change y by (-.8)\n        end\n        repeat (100)\n            change y by (.8)\n        end\n    end\nend\n\n@LAVA!1\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nstop [other scripts in sprite v]\nhide\nif <(LEVEL!) = [10]> then\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    forever\n        repeat (20)\n            change y by (-.2)\n        end\n        repeat (20)\n            change y by (.2)\n        end\n    end\nend\nif <(LEVEL!) = [14]> then\n    switch costume to (costume2 v)\n    go to x: (0) y: (-310)\n    go to [front v] layer\n    show\n    forever\n        repeat (210)\n            change y by (1)\n        end\n        repeat (210)\n            change y by (-1)\n        end\n    end\nend\nif <(LEVEL!) = [17]> then\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    forever\n        repeat (40)\n            change y by (-.2)\n        end\n        repeat (40)\n            change y by (.2)\n        end\n    end\nend\n\n@POWERUP!5\n\nwhen flag clicked\nset [powerup! v] to [0]\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nset [powerup! v] to [0]\nhide\nwait (0) seconds\nif <(LEVEL!) = [16]> then\n    go to x: (-80) y: (-60)\n    broadcast (SHRINK! v)\nend\nif <(LEVEL!) = [17]> then\n    go to x: (210) y: (130)\n    broadcast (SHRINK! v)\nend\n\nwhen I receive [reset v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [shrink! v]\nclear graphic effects\nset size to (30) %\nshow\nwait until <<touching (player hitbox! v)?> and <(POWERUP!) = [0]>>\nset [powerup! v] to [4]\nbroadcast (SWITCH! v)\nstart sound [Collect v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (3)\nend\nhide\n\nwhen I receive [shrink! v]\nforever\n    repeat (10)\n        change y by (-.5)\n    end\n    repeat (10)\n        change y by (.5)\n    end\nend\n\n@TB!\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\nend\n\n@POWERUP!6\n\nwhen flag clicked\nset [powerup! v] to [0]\npoint in direction (90)\nhide\n\nwhen I receive [reset v]\nset [powerup! v] to [0]\nhide\nwait (0) seconds\nif <(RAINBOW!) = [0]> then\n    if <(LEVEL!) = [19]> then\n        go to x: (-10) y: (0)\n        broadcast (WIN! v)\n    end\nend\n\nwhen I receive [reset v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [win! v]\nclear graphic effects\nset size to (30) %\nshow\nwait until <<touching (player hitbox! v)?> and <(POWERUP!) = [0]>>\nset [rainbow! v] to [1]\nstart sound [Collect v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (3)\nend\nhide\n\nwhen I receive [win! v]\nforever\n    repeat (10)\n        change y by (-.5)\n    end\n    repeat (10)\n        change y by (.5)\n    end\nend\n\nwhen I receive [win! v]\nclear graphic effects\nforever\n    change [color v] effect by (5)\nend\n\n@RAINBOW EFFECT!\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    hide\n    if <(RAINBOW!) = [1]> then\n        change [color v] effect by (5)\n        create clone of (_myself_ v)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I start as a clone\nif <(CROUCHING!) = [1]> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\ngo to (player! v)\nshow\nrepeat (10)\n    change [color v] effect by (5)\n    change [ghost v] effect by (10)\nend\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(POWERUP!) = [4]> then\n        set size to (10) %\n    else\n        set size to (30) %\n    end\nend\n\n@RESTART BUTTON!\n\nwhen flag clicked\nbroadcast (PLAY! v)\nhide\nforever\n    go to x: (0) y: (-150)\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        clear graphic effects\n    end\n    if <(LEVEL!) = [19]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nset [level! v] to [1]\nbroadcast (PLAY! v)\nbroadcast (Reset v)\n\n@POWERUP!7\n\nwhen flag clicked\nset [rainbow! v] to [0]\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nshow\nforever\n    if <(RAINBOW!) = [1]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\n