Adventure - A Simple Platformer #GAMES

Instructions: Adventure - A Simple Platformer\n\n#3th on French Trending and #1ST on French Trending Games!!!!!! Thank you so much!\n\nCheck Out the Sequence : Adventure 2!\nhttps://scratch.mit.edu/projects/420343162/\n\nControls :\n- WASD or Arrow keys to move\n- You CANNOT wall jump\n- Avoid spikes ( very simple )\nAnd Enjoy!\n\nThere is a Loved and Faved Detector that I made, you can see it inside..\n\nThanks to @-SandBox- for the epic Intro!\n\nSome Best Followers Who Loved & Faved :\n@LOLele_54 Loved & Faved!\n@Lucasliu9595 Loved & Faved!\n@nampinanathali Loved & Faved!\n@0014049 Loved & Faved!!\n\n\n#Games #Adventure #Player #Spikes #Jamie3128 #LOP

@Stage\n\nwhen I receive [stop intro v]\nforever\n    play sound [DJVI - Bouncing v] until done\nend\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\nforever\n    switch costume to (lvl)\nend\n\n@Portal\n\nwhen I receive [gamestart v]\nset [ghost v] effect to (30)\nshow\ncreate clone of (_myself_ v)\nforever\n    change [sine v] by (7.5)\n    if <(lvl) = [1]> then\n        go to x: (208) y: ((([sin v] of (Sine) ) * (3)) + (95))\n    else\n        if <(lvl) = [2]> then\n            go to x: (-132) y: ((([sin v] of (Sine) ) * (3)) + (95))\n        else\n            if <(lvl) = [3]> then\n                go to x: (-190) y: ((([sin v] of (Sine) ) * (3)) + (110))\n            else\n                if <(lvl) = [4]> then\n                    go to x: (-195) y: ((([sin v] of (Sine) ) * (3)) + (140))\n                else\n                    if <(lvl) = [5]> then\n                        go to x: (90) y: ((([sin v] of (Sine) ) * (3)) + (-40))\n                    else\n                        if <(lvl) = [6]> then\n                            go to x: (180) y: ((([sin v] of (Sine) ) * (3)) + (130))\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\n    turn left (5) degrees\nend\n\nwhen I start as a clone\nset [ghost v] effect to (30)\nshow\nforever\n    if <(lvl) = [1]> then\n        go to x: (208) y: ((([sin v] of (Sine) ) * (3)) + (95))\n    else\n        if <(lvl) = [2]> then\n            go to x: (-132) y: ((([sin v] of (Sine) ) * (3)) + (95))\n        else\n            if <(lvl) = [3]> then\n                go to x: (-190) y: ((([sin v] of (Sine) ) * (3)) + (110))\n            else\n                if <(lvl) = [4]> then\n                    go to x: (-195) y: ((([sin v] of (Sine) ) * (3)) + (140))\n                else\n                    if <(lvl) = [5]> then\n                        go to x: (90) y: ((([sin v] of (Sine) ) * (3)) + (-40))\n                    else\n                        if <(lvl) = [6]> then\n                            go to x: (180) y: ((([sin v] of (Sine) ) * (3)) + (130))\n                        else\n                            delete this clone\n                        end\n                    end\n                end\n            end\n        end\n    end\n    turn left (-5) degrees\nend\n\nwhen I receive [stop intro v]\nset [sine v] to [0]\nset [lvl v] to [1]\nhide\n\nwhen flag clicked\nhide\n\n@Spikes\n\nwhen I receive [gamestart v]\nshow\nforever\n    switch costume to (lvl)\nend\n\nwhen flag clicked\nhide\n\n@Player\n\nwhen I receive [gamestart v]\nshow\ngo to x: (-200) y: (-20)\nset [p1yvel v] to [0]\nset [p1yvel v] to [0]\nforever\n    if <not <(Trans.) = [1]>> then\n        show\n        if <not <touching (ground v)?>> then\n            change [p1falling v] by (1)\n            change y by (P1Yvel)\n            change [p1yvel v] by (-1.2)\n        end\n        LevelYPos <[0] < (P1Yvel)>\n        if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n            change [p1xvel v] by (-1.5)\n        end\n        if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n            change [p1xvel v] by (1.5)\n        end\n        set [p1xvel v] to ((P1Xvel) * (0.85))\n        change x by (P1Xvel)\n        if <<[4] > (P1Falling)> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            set [p1yvel v] to [11]\n        end\n        AdjustXPos\n    else\n        hide\n        go to x: (-200) y: (-20)\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine LevelYPos <up?>\nrepeat until <not <touching (ground v)?>>\n    set [p1yvel v] to [0]\n    if <up?> then\n        change y by (-1)\n    else\n        set [p1falling v] to [0]\n        change y by (1)\n    end\nend\n\ndefine AdjustXPos\nrepeat until <not <touching (ground v)?>>\n    change x by ((P1Xvel) * (-1))\nend\n\nwhen I receive [gamestart v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume4 v)\nrepeat (16)\n    change size by (-7)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [gamestart v]\nforever\n    if <touching (portal v)?> then\n        broadcast (Transition v)\n        wait until <(Trans.) = [0]>\n        set [p1falling v] to [0]\n        set [p1yvel v] to [0]\n        set [p1yvel v] to [0]\n        change [lvl v] by (1)\n    end\n    if <touching (spikes v)?> then\n        set [p1falling v] to [0]\n        set [p1yvel v] to [0]\n        set [p1yvel v] to [0]\n        go to x: (-200) y: (-20)\n    end\nend\n\nwhen I receive [stop intro v]\nforever\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (-20)\n        set [p1falling v] to [0]\n        set [p1yvel v] to [0]\n        set [p1yvel v] to [0]\n        wait until <not <key (r v) pressed?>>\n    end\nend\n\nwhen I receive [stop intro v]\nforever\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (costume3 v)\n    else\n        if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n            switch costume to (costume2 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\n@Button\n\nwhen I receive [start v]\nwait (0.6) seconds\nhide\n\nwhen I receive [stop intro v]\nshow\nreset timer\nset size to (8) %\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (2)) + (90))\n    change size by ((((([sin v] of ((timer) * (300)) ) * (3.8)) + (size)) - (size)) / (3))\nend\n\nwhen I receive [stop intro v]\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nstart sound [Click \(1\) v]\nbroadcast (start v)\n\nwhen I receive [stop intro v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [size v] to [130]\n    else\n        set [size v] to [100]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Button2\n\nwhen I receive [gamestart v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [size v] to [130]\n    else\n        set [size v] to [100]\n    end\nend\n\nwhen I receive [gamestart v]\nreset timer\nset size to (8) %\nforever\n    go to [back v] layer\n    go to (button v)\n    point in direction ((([sin v] of ((timer) * (300)) ) * (3.2)) + (90))\n    change size by ((((([sin v] of ((timer) * (300)) ) * (5)) + (size)) - (size)) / (3))\nend\n\nwhen I receive [stop intro v]\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nstart sound [Click \(1\) v]\nbroadcast (start v)\n\nwhen flag clicked\nhide\n\n@Logo\n\nwhen I receive [start v]\nwait (0.4) seconds\nhide\n\nwhen I receive [stop intro v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [size2 v] to [190]\n    else\n        set [size2 v] to [160]\n    end\nend\n\nwhen I receive [stop intro v]\nshow\nreset timer\nset size to (8) %\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (1.5)) + (90))\n    change size by ((((([sin v] of ((timer) * (300)) ) * (1.5)) + (size2)) - (size)) / (3))\nend\n\n@Logo2\n\nwhen I receive [start v]\nwait (0.7) seconds\nhide\n\nwhen I receive [stop intro v]\nshow\nreset timer\nset size to (100) %\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (2)) + (90))\nend\n\n@Logo3\n\nwhen I receive [stop intro v]\nreset timer\nset size to (8) %\nforever\n    go to [back v] layer\n    go to (logo v)\n    point in direction ((([sin v] of ((timer) * (150)) ) * (1.5)) + (90))\n    change size by ((((([sin v] of ((timer) * (300)) ) * (1.5)) + (size2)) - (size)) / (3))\nend\n\nwhen I receive [stop intro v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [size2 v] to [190]\n    else\n        set [size2 v] to [160]\n    end\nend\n\nwhen flag clicked\nhide\n\n@BackgroundFX\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (60) to (80))\nrepeat until <[175] < (y position)>\n    move (pick random (3) to (5)) steps\nend\ndelete this clone\n\nwhen I receive [stop intro v]\nhide\ngo to [back v] layer\nforever\n    go to x: (pick random (-240) to (240)) y: (-180)\n    set size to (pick random (70) to (130)) %\n    point in direction (pick random (-30) to (30))\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\n@Start\n\nwhen flag clicked\ngo to x: (0) y: (345)\nhide\n\nwhen I receive [start v]\nset [m v] to [0]\nset [s v] to [0]\nshow\nrepeat until <(y position) < [-330]>\n    change [s v] by (-2)\n    change y by (S)\nend\nhide\nbroadcast (gamestart v)\n\n@Sun\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nshow\nforever\nend\n\n@Glow\n\nwhen flag clicked\nreset timer\nhide\n\nwhen I receive [gamestart v]\nshow\nforever\n    go to (sun v)\n    set size to ((([sin v] of ((timer) * (150)) ) * (2)) + (100)) %\nend\n\n@Detector\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\nwhen I receive [stop intro v]\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\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\n@Trans\n\nwhen I receive [transition v]\nswitch costume to (dark gray v)\ncreate clone of (_myself_ v)\nswitch costume to (gray v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nset [color v] effect to ((1) / (0))\nif <(costume [number v]) = [1]> then\n    clear graphic effects\n    set [trans. v] to [1]\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    set [trans. v] to [0]\n    repeat (20)\n        change x by (((400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) > [225]> then\n            show\n        end\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    clear graphic effects\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (-400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    repeat (20)\n        change x by (((-400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) < [-225]> then\n            show\n        end\n    end\n    delete this clone\nend\n\nwhen I receive [stop intro v]\nset [trans. v] to [0]\n\n@Thanks\n\nwhen I receive [gamestart v]\nforever\n    if <(lvl) = [7]> then\n        show\n        change [sine v] by (6.5)\n        point in direction ((([sin v] of (sine) ) * (6)) + (90))\n        set size to ((([sin v] of ((sine) * (2)) ) * (7)) + (130)) %\n    end\nend\n\nwhen I receive [stop intro v]\nhide\nset [sine v] to [0]\npoint in direction (90)\n\n@Things\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [25]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nset [turn v] to (pick random (-3) to (5))\ngo to x: (pick random (-235) to (235)) y: (-195)\nset size to (pick random (50) to (60)) %\ngo [backward v] (50) layers\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [gamestart v]\nforever\n    if <(lvl) = [7]> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n        next costume\n    end\nend\n\n@Intro\n\nwhen flag clicked\nplay sound [Nebula v] until done\n\nwhen flag clicked\nhide\nset [id v] to [j]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [id v] to [3]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [id v] to [cover]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [id v] to [bg]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [id v] to [j3]\ncreate clone of (_myself_ v)\nwait (0) seconds\nset [id v] to [jamie3128]\ncreate clone of (_myself_ v)\nwait (0) seconds\nbroadcast (bum v)\n\nwhen I start as a clone\nif <(id) = [j]> then\n    set [j percentage v] to [0.9]\n    set [ghost j v] to [100]\n    set [size j v] to [50]\n    set [direction j v] to [30]\n    set [place j v] to [-150]\n    point in direction (direction j)\n    go to x: (place j) y: (place j)\n    switch costume to (j v)\n    set [ghost v] effect to (ghost j)\n    set size to (size j) %\n    show\n    repeat (56)\n        set [ghost j v] to ((ghost j) * (j percentage))\n        set [size j v] to (((size j) + (11.1)) * (j percentage))\n        set [direction j v] to (((direction j) + (90.2)) * (j percentage))\n        set [ghost v] effect to (ghost j)\n        set size to (size j) %\n        go to [front v] layer\n        go to x: ((x position) * (j percentage)) y: ((y position) * (j percentage))\n        point in direction (direction j)\n    end\n    hide\nelse\n    if <(id) = [3]> then\n        point in direction (90)\n        go to x: (150) y: (150)\n        set [ghost v] effect to (100)\n        switch costume to (3 v)\n        wait (1) seconds\n        show\n        repeat (24)\n            go to x: ((x position) * (0.7)) y: ((y position) * (0.7))\n            change [ghost v] effect by (-4)\n            go to [front v] layer\n        end\n        hide\n    else\n        if <(id) = [cover]> then\n            go to x: (0) y: (0)\n            switch costume to (cover v)\n            show\n        else\n            if <(id) = [bg]> then\n                go to x: (0) y: (0)\n                set [brightness v] effect to (-50)\n                switch costume to (bg v)\n                show\n                repeat until <(stop intro) = [ye]>\n                    repeat (9)\n                        go to [back v] layer\n                        change x by (7)\n                        change y by (7)\n                    end\n                    go to x: (0) y: (0)\n                end\n                hide\n                delete this clone\n            else\n                if <(id) = [bum]> then\n                    go to x: (pick random (1) to (10)) y: (-160)\n                    point in direction (pick random (-120) to (120))\n                    switch costume to (bum v)\n                    set size to (pick random (30) to (100)) %\n                    set [brightness v] effect to (pick random (-30) to (0))\n                    set [ghost v] effect to (pick random (30) to (70))\n                    go to [front v] layer\n                    show\n                    repeat until <(y position) < [-160]>\n                        change y by (vel)\n                        change [vel v] by (-2)\n                        move (10) steps\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(id) = [cover]> then\n    set [move cover v] to [80]\n    set [ghost v] effect to (0)\n    wait (1.35) seconds\n    repeat (14)\n        change [ghost v] effect by (7.14285714)\n        change y by (move cover)\n        set [move cover v] to ((move cover) * (0.77))\n    end\n    hide\n    delete this clone\nelse\n    if <(id) = [bg]> then\n        wait (1.7) seconds\n        set [brightness bg v] to [100]\n        set [brightness v] effect to (brightness bg)\n        repeat (50)\n            set [brightness bg v] to ((brightness bg) * (0.95))\n            set [brightness v] effect to (brightness bg)\n        end\n    else\n        if <(id) = [j3]> then\n            wait (1.7) seconds\n            set [brightness bg v] to [100]\n            switch costume to (j3 v)\n            set [brightness v] effect to (brightness bg)\n            show\n            repeat (50)\n                set [brightness bg v] to ((brightness bg) * (0.95))\n                set [brightness v] effect to (brightness bg)\n            end\n        end\n    end\nend\n\nwhen I receive [bum v]\nwait (1.7) seconds\nset [id v] to [bum]\nrepeat (5)\n    bum\nend\n\ndefine bum\nset [vel v] to (pick random (20) to (30))\nrepeat (2)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(id) = [j3]> then\n    wait (1.7) seconds\n    go to x: (0) y: (0)\n    point in direction (90)\n    set [t j3 v] to [0]\n    set [x j3 v] to [0]\n    set [y j3 v] to [0]\n    set [z j3 v] to [0]\n    repeat until <(stop intro) = [ye]>\n        change [t j3 v] by (4)\n        change [x j3 v] by (2)\n        change [y j3 v] by (4)\n        change [z j3 v] by (12.8)\n        change x by ([cos v] of (x j3) )\n        change y by ([cos v] of (y j3) )\n        change size by ((2) * ([cos v] of (z j3) ))\n        turn right ((2.718) * ([abs v] of ([tan v] of (t j3) ) )) degrees\n    end\n    delete this clone\nelse\n    if <(id) = [jamie3128]> then\n        wait (3.7) seconds\n        set [jamie3128 v] to [-50]\n        go to x: (0) y: (-50)\n        switch costume to (jamie3128 v)\n        set [ghost v] effect to (100)\n        show\n        repeat (25)\n            set y to (jamie3128)\n            set [jamie3128 v] to ((jamie3128) * (0.9))\n            change [ghost v] effect by (-4)\n        end\n        wait (1.5) seconds\n        repeat (25)\n            set y to (jamie3128)\n            set [jamie3128 v] to (((jamie3128) * (0.9)) - (5))\n            change [ghost v] effect by (4)\n        end\n        go to x: (-400) y: (0)\n        switch costume to (cover v)\n        set [ghost v] effect to (0)\n        go to [front v] layer\n        show\n        repeat (25)\n            go to x: ((x position) * (0.8)) y: (0)\n        end\n        broadcast (stop intro v)\n        wait (0.5) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I receive [stop intro v]\nset [stop intro v] to [ye]\n\nwhen flag clicked\nset [stop intro v] to []\n\n