Heaven - Platformer Collab between @TNTend and @TheMario11 #all #games
@Stage\n\nwhen flag clicked\n\nwhen I receive [start project v]\nforever\n    play sound [cool moosic v] until done\nend\n\nwhen I receive [start project v]\nbroadcast (play v)\n\n@Player\n\nwhen I start as a clone\nswitch costume to (2 v)\nclear graphic effects\nset size to (80) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-8)\nend\ndelete this clone\n\nwhen I receive [play v]\nset rotation style [left-right v]\nswitch costume to (costume1 v)\nset size to (250) %\nshow\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (1)\n        point in direction (90)\n        if <(Yv) = [0]> then\n            create clone of (particle v)\n        end\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 [xv v] by (-1)\n        point in direction (-90)\n        if <(Yv) = [0]> then\n            create clone of (particle v)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching (stage v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (stage 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 [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <touching color (#00cc44)?> then\n        set size to (250) %\n        go to x: (-164) y: (-125)\n        broadcast (next v)\n    end\n    if <touching (do not touch v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        set size to (250) %\n        go to x: (-175) y: (-125)\n    end\n    if <touching color (#4c0099)?> then\n        wait (0.15) seconds\n        set size to (210) %\n    end\n    if <touching color (#cccc00)?> then\n        wait (0.15) seconds\n        set size to (250) %\n    end\n    if <([y position v] of [player v]) < [-178]> then\n        hide\n        wait (0.2) seconds\n        show\n        set size to (250) %\n        go to x: (-191) y: (-144)\n    end\n    if <(x position) > [240]> then\n        wait (0.01) seconds\n        show\n        set size to (250) %\n        go to x: (-191) y: (-130)\n        change [stage v] by (1)\n    end\nend\n\nwhen I receive [play v]\ngo to x: (-174) y: (-125)\nclear graphic effects\nshow\n\nwhen [r v] key pressed\ngo to x: (-174) y: (-125)\n\nwhen I receive [i want taco bell v]\ngo to x: (-174) y: (-125)\n\ngo to (random position v)\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nshow\nforever\n    repeat (4)\n        wait (0.1) seconds\n        next costume\n    end\n    repeat (4)\n        wait (0.1) seconds\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen flag clicked\nset size to (250) %\nforever\n    go to (player v)\n    go to (player v)\nend\n\nwhen flag clicked\nhide\n\n@Do NoT ToUcH\n\nwhen flag clicked\n\nrepeat (12)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo [backward v] (3) layers\nforever\n    switch costume to (Stage)\nend\n\n@Stage\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo [backward v] (2) layers\nset [stage v] to [1]\nforever\n    switch costume to (Stage)\nend\n\n@Sprite4\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo [backward v] (5) layers\n\n@particle\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to position\nclear graphic effects\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset [offset v] to [0]\nrepeat (7)\n    turn right (xspeed) degrees\n    set [change v] to (pick random (-1) to (1))\n    change [offset v] by (change)\n    change y by (change)\n    adjustposition\nend\ndelete this clone\n\ndefine go to position\nshow\ngo to (player v)\nchange y by (pick random (-27) to (-24))\nhide\n\ndefine adjustposition\nif <(offset) < [0]> then\n    change y by (1)\n    change [offset v] by (1)\nend\n\nwhen I receive [move v]\n\n@Intro\n\nwhen I start as a clone\nif <(Clone ID) = [Watermark]> then\n    Keyframe [1.8]\n    show\n    switch costume to (watermark v)\n    set size to (100) %\n    switch costume to (pos hack v)\n    go to x: (0) y: (-50)\n    repeat until <(timer) > [8]>\n        switch costume to (pos hack v)\n        change y by (((0) - (y position)) / (10))\n        switch costume to (watermark v)\n    end\n    repeat (50)\n        switch costume to (pos hack v)\n        change y by (((-50) - (y position)) / (10))\n        switch costume to (watermark v)\n    end\nend\n\nwhen flag clicked\nStart Intro\n\ndefine Start Intro\nstart sound [Music v]\nreset timer\nset volume to (100) %\nhide\nclear graphic effects\nset [clone id v] to [Parent]\nset [var 1 v] to [0.1]\nset [var 2 v] to [-5]\ndelete all of [intro v]\nadd [0] to [intro v]\nadd [0] to [intro v]\nadd [100] to [intro v]\nadd [90] to [intro v]\nCreate Particles\nCreate Clone [Keyframe]\nCreate Clone [Back]\npoint in direction (90)\nrepeat (8)\n    turn right (45) degrees\n    Create Clone [Line]\nend\nCreate Clone [Text]\nCreate Clone [Circle]\nCreate Clone [Top0.5]\nCreate Clone [Bottom0.5]\nCreate Clone [Top000]\nCreate Clone [Bottom000]\nCreate Clone [Pos Master]\nCreate Clone [Watermark]\n\ndefine Create Clone (id)\nset [# v] to (Clone ID)\nset [clonex v] to (x position)\nset [cloney v] to (y position)\nset [clonedir v] to (direction)\nset [clone size v] to (size)\nset [clone id v] to (id)\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\ncreate clone of (_myself_ v)\ngo to x: (CloneX) y: (CloneY)\npoint in direction (CloneDir)\nset size to (Clone Size) %\nset [clone id v] to (#)\n\ndefine Set Size to (size)\nset [costume # v] to (costume [number v])\nif <(size) > [100]> then\n    switch costume to (size hack v)\nend\nset size to (size) %\nswitch costume to (Costume #)\n\ndefine Go to (x) (y)\nset [costume # v] to (costume [number v])\nswitch costume to (pos hack v)\ngo to x: (x) y: (y)\nswitch costume to (Costume #)\n\ndefine Go to (x) (y) (z) (focal length)\nset [costume # v] to (costume [number v])\nswitch costume to (pos hack v)\nset [intro: x v] to ((focal length) * (((x) + (item (1) of [intro v])) / ((z) + (item (3) of [intro v]))))\nset [intro: y v] to ((focal length) * (((y) + (item (2) of [intro v])) / ((z) + (item (3) of [intro v]))))\npoint in direction (item (4) of [intro v])\ngo to x: (Intro: X) y: (Intro: Y)\nswitch costume to (Costume #)\n\nwhen I start as a clone\nif <(Clone ID) = [Keyframe]> then\n    Keyframe [1.8]\n    Beat [2]\n    Size Thing [2.7] [1]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [3.5] [2]\n    Size Thing [4.4] [1]\n    Size Thing [5.2] [2]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [6.1] [1]\n    Size Thing [7.0] [2]\n    Size Thing [7.8] [1]\n    Create Clone [Left]\n    Create Clone [Right]\n    Size Thing [8.7] [2]\n    broadcast (Start Project v)\nend\nif <(Clone ID) = [Pos Master]> then\n    repeat until <(timer) > [4]>\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    point in direction (item (4) of [intro v])\n    set [var 1 v] to [1]\n    repeat (15)\n        turn right (Var 1) degrees\n        change [var 1 v] by ((Var 1) / (4))\n        replace item (4) of [intro v] with (direction)\n    end\n    repeat (20)\n        turn right (((90) - (direction)) / (5)) degrees\n        replace item (4) of [intro v] with (direction)\n    end\n    repeat until <(timer) > [6.1]>\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [7.0]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((-500) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [7.8]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((300) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\n    repeat until <(timer) > [10]>\n        replace item (2) of [intro v] with ((item (2) of [intro v]) + (((0) - (item (2) of [intro v])) / (5)))\n        replace item (4) of [intro v] with ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    end\nend\n\ndefine Size Thing (time) (type)\nrepeat until <(timer) > (time)>\n    replace item (3) of [intro v] with ((item (3) of [intro v]) + (Var 2))\n    change [var 2 v] by (0.4)\nend\nBeat (type)\nset [var 1 v] to [0.1]\nset [var 2 v] to [-5]\n\ndefine Keyframe (time)\nwait until <(timer) > (time)>\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    show\n    switch costume to (oc v)\n    repeat until <(timer) > [4.5]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: (0)\n        Set Size to (item (3) of [intro v])\n    end\n    switch costume to (text  v)\n    set [color v] effect to (0)\n    repeat until <(timer) > [6.1]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: (0)\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [7]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((50) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [7.8]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((-50) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\n    repeat until <(timer) > [10]>\n        point in direction (item (4) of [intro v])\n        go to x: (0) y: ((y position) + (((0) - (y position)) / (5)))\n        Set Size to (item (3) of [intro v])\n    end\nend\nif <(Clone ID) = [Circle]> then\n    show\n    set [brightness v] effect to (-100)\n    switch costume to (circle2 v)\n    Keyframe [1.8]\n    switch costume to (circle v)\n    set [var 1 v] to [20]\n    repeat (8)\n        Set Size to ((size) + (Var 1))\n        change [var 1 v] by (10)\n        go to [front v] layer\n    end\n    repeat (30)\n        Set Size to ((size) + (Var 1))\n        change [var 1 v] by (((0) - (Var 1)) / (7))\n        go to [front v] layer\n    end\n    delete this clone\nend\nif < (Clone ID) contains [Top]?> then\n    show\n    switch costume to (top v)\n    wait (join (letter (4) of (Clone ID)) (join (letter (5) of (Clone ID)) (letter (6) of (Clone ID)))) seconds\n    set [var 1 v] to [0.1]\n    repeat until <(timer) > [5]>\n        Go to (x position) ((y position) + (Var 1))\n        change [var 1 v] by ((Var 1) / (5))\n    end\nend\nif < (Clone ID) contains [Bottom]?> then\n    show\n    switch costume to (bottom v)\n    wait (join (letter (7) of (Clone ID)) (join (letter (8) of (Clone ID)) (letter (9) of (Clone ID)))) seconds\n    set [var 1 v] to [0.1]\n    repeat until <(timer) > [5]>\n        Go to (x position) ((y position) - (Var 1))\n        change [var 1 v] by ((Var 1) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 1]> then\n    show\n    switch costume to (diamond 1 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    Set Size to [0]\n    forever\n        Go to [0] [0] (size) (size)\n        Set Size to (((Var 1) + (item (3) of [intro v])) / (2))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 3]> then\n    show\n    switch costume to (diamond 1 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (85)\n    Set Size to [0]\n    forever\n        Set Size to ((((Var 1) + (item (3) of [intro v])) / (2)) - (0))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n        Go to ((size) / (5)) ((size) / (-5)) (size) (size)\n    end\nend\nif <(Clone ID) = [Diamond 2]> then\n    show\n    switch costume to (diamond 2 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    Set Size to [0]\n    forever\n        Go to [0] [0] (size) (size)\n        Set Size to (((Var 1) + (item (3) of [intro v])) / (2))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n    end\nend\nif <(Clone ID) = [Diamond 4]> then\n    show\n    switch costume to (diamond 2 v)\n    set [var 2 v] to [100]\n    set [var 1 v] to [0]\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (85)\n    Set Size to [0]\n    forever\n        Set Size to ((((Var 1) + (item (3) of [intro v])) / (2)) - (0))\n        change [var 1 v] by (((Var 2) - (Var 1)) / (5))\n        Go to ((size) / (10)) ((size) / (-10)) (size) (size)\n    end\nend\n\nwhen I receive [{intro} beat v]\nif <(Clone ID) = [Diamond 1]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 3]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 2]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\nif <(Clone ID) = [Diamond 4]> then\n    change [var 2 v] by ((Var 2) / (0.5))\nend\n\ndefine Beat (type)\nif <(type) = [1]> then\n    broadcast ({Intro} Beat v)\n    Create Clone [Diamond 3]\n    Create Clone [Diamond 1]\nend\nif <(type) = [2]> then\n    broadcast ({Intro} Beat v)\n    Create Clone [Diamond 4]\n    Create Clone [Diamond 2]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Back]> then\n    show\n    switch costume to (back v)\n    forever\n        go to [back v] layer\n    end\nend\nif <(Clone ID) = [Line]> then\n    Keyframe [1.8]\n    show\n    switch costume to (line 1 v)\n    set [var 1 v] to [10]\n    point in direction (CloneDir)\n    repeat (11)\n        move (Var 1) steps\n        set [var 1 v] to ((Var 1) * (0.9))\n    end\n    repeat (11)\n        move (Var 1) steps\n        set [var 1 v] to ((Var 1) * (0.9))\n        next costume\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Left]> then\n    show\n    switch costume to (left v)\n    set [brightness v] effect to (100)\n    Go to [-400] [0]\n    repeat (30)\n        Go to ((x position) + (((400) - (x position)) / (10))) [0]\n    end\n    delete this clone\nend\nif <(Clone ID) = [Right]> then\n    show\n    switch costume to (right v)\n    set [brightness v] effect to (100)\n    Go to [400] [0]\n    repeat (30)\n        Go to ((x position) + (((-400) - (x position)) / (10))) [0]\n    end\n    delete this clone\nend\n\nwhen I receive [start project v]\nif <(Clone ID) = [Text]> then\n    stop [other scripts in sprite v]\n    point in direction (90)\n    repeat (30)\n        set [intro: x v] to (([sin v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        set [intro: y v] to (([cos v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        go to x: (Intro: X) y: (Intro: Y)\n        change size by (((25) - (size)) / (10))\n    end\n    repeat (20)\n        set [intro: x v] to (([sin v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        set [intro: y v] to (([cos v] of ((timer) * (750)) ) * (((25) - (size)) * (0.75)))\n        go to x: (Intro: X) y: (Intro: Y)\n        change size by (((25) - (size)) / (10))\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nelse\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\ndefine Create Particles\nrepeat (150)\n    Create Clone [Particle]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Particle]> then\n    Keyframe [1]\n    set [var 1 v] to (pick random (-180) to (180))\n    set [var 2 v] to (pick random (1) to (1000))\n    show\n    switch costume to (particle v)\n    set [brightness v] effect to (100)\n    set [ghost v] effect to (25)\n    set size to (10) %\n    forever\n        set [intro: x v] to (([sin v] of ((Var 1) + (item (4) of [intro v])) ) * (((Var 2) + (item (3) of [intro v])) / (2)))\n        set [intro: y v] to (([cos v] of ((Var 1) + (item (4) of [intro v])) ) * (((Var 2) + (item (3) of [intro v])) / (2)))\n        Go to ((Intro: X) + (item (1) of [intro v])) ((Intro: Y) + (item (2) of [intro v]))\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nreset timer\nhide\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\nforever\n    if <(timer) > [0.01]> then\n        switch costume to (costume1 v)\n        set size to (105) %\n        switch costume to (costume1 v)\n        set [shake v] to [10]\n        go to [front v] layer\n        show\n        repeat (40)\n            go to x: (pick random ((shake) / ((shake) * (2))) to (shake)) y: (pick random ((shake) / ((shake) * (2))) to (shake))\n            change [shake v] by (-0.25)\n        end\n        go to x: (0) y: (0)\n        repeat until <(round (size)) = [100]>\n            switch costume to (costume4 v)\n            set size to ((size) + (((100) - (size)) / (5))) %\n            switch costume to (costume3 v)\n        end\n    end\nend\n\n@Awesome Particles\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (6) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (5) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (4) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (3) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (2.5) secs to x: (x position) y: (200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start project v]\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (-180)\n    create clone of (_myself_ v)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n
PLEASE LOVE AND FAVE!\nHow to move - Use arrow keys or mobile controls\nDo not touch - Spike - Goo\n R to Reset \n\nThis is Collab between @TNTend and @TheMario11!!\nLook his version too!!! \nhttps://scratch.mit.edu/projects/481247935