ADVENTURE VALLEY - A Platformer #games

Instructions:                             ADVENTURE VALLEY\n ------------------Realistic Cartoon-ish Platformer----------\n\n-Use arrow keys to move and complete the levels\n-Once you get to the boss level, make the rockets crash against the platform   \n-The boss dies after you dodge enough rockets\n-more directions in the game\nPLEASE love and fave, I worked so hard on this.\nJeeez! 100+ loves in 6 days!\nNice, 200 loves and faves!\nYay, 1000 views.\nYay, 2000 views\nTry remixing and making the levels harder, when you finish, send them to me.\nIf you remix, please make changes.

@Stage\n\n@Sprite1\n\nwhen I receive [hi v]\ngo to x: (0) y: (0)\ngo to [back v] layer\nshow\nforever\n    switch costume to (lvl)\nend\n\nwhen flag clicked\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@Sprite3\n\nwhen I receive [billy v]\nhide\n\nwhen I receive [hi v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (lvl)\nend\n\nwhen flag clicked\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@dude\n\nwhen flag clicked\nforever\n    reset timer\nend\n\ndefine (x) (y) (jh)\nset rotation style [don't rotate v]\nswitch costume to (costume1 v)\ngo to [front v] layer\nchange [y v] by (y)\nchange y by (y)\nif <touching (sprite3 v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <<touching (sprite3 v)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    set [y v] to (jh)\nend\nchange y by (1)\nset [x v] to (((x) * (x)) + (<<key (d v) pressed?> or <key (right arrow v) pressed?>> - <<key (a v) pressed?> or <key (left arrow v) pressed?>>))\nchange x by (x)\nstuff\nmore stuff\nset rotation style [left-right v]\nif <not <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n    switch costume to (costume2 v)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (run)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\nelse\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\nend\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(y) > [0]> then\n        switch costume to (costume12 v)\n    else\n        switch costume to (costume13 v)\n    end\nend\n\ndefine stuff\nrepeat (8)\n    change y by (<touching (sprite3 v)?> * (1))\nend\nchange y by (<touching (sprite3 v)?> * (-8))\nchange x by (<touching (sprite3 v)?> * ((x) * (-1)))\n\nwhen flag clicked\nset [run v] to [3]\nforever\n    repeat (8)\n        wait (0.02) seconds\n        change [run v] by (1)\n    end\n    wait (0.02) seconds\n    set [run v] to [3]\nend\n\ndefine \nset size to (90) %\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-204) y: (-41)\nshow\n\ndefine more stuff\nif <<touching (sprite2 v)?> or <touching (sprite5 v)?>> then\n    start sound [Big-Grenade-Explosion-www v]\n    \nend\nif <touching (hi person v)?> then\n    if <not <(lvl) = [10]>> then\n        \n        change [lvl v] by (1)\n    end\n    if <not <(lvl) = [2]>> then\n        broadcast (idk v)\n    end\nend\nif <[-170] > (y position)> then\n    start sound [Big-Grenade-Explosion-www v]\n    \nend\nif <<touching (sprite4 v)?> or <touching (sprite15 v)?>> then\n    start sound [Big-Grenade-Explosion-www v]\n    broadcast (goodbye world v)\n    \nend\n\nwhen flag clicked\n\nwhen I receive [idk v]\nif <(lvl) = [9]> then\n    broadcast (bossfight v)\nend\n\nbroadcast (goodbye world v)\n\nwhen flag clicked\nforever\n\nif <(lvl) = [10]> then\n    broadcast (stop v)\n    stop [all v]\nend\n\nwhen I receive [billy v]\nhide\n\nwhen I receive [hellohowareyou v]\nstart sound [Big-Grenade-Explosion-www v]\n\n\nwhen I receive [hi v]\n\nbroadcast (idk v)\nset [lvl v] to [1]\nforever\n    [0.85] [-0.85] [12]\nend\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@Sprite2\n\nwhen I receive [billy v]\nhide\n\nwhen flag clicked\n\nwhen I receive [hi v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (lvl)\nend\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@hi person\n\nwhen I receive [stop v]\nhide\n\nwhen I receive [hi v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [hi v]\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (lvl)\nend\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@Sprite5\n\nwhen flag clicked\n\ndefine \ngo to x: (-77) y: (80)\nglide (0.7) secs to x: (-77) y: (-90)\nwait (1) seconds\nglide (0.7) secs to x: (-77) y: (80)\nwait (1) seconds\n\nwhen I receive [idk v]\nhide\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [hi v]\nhide\nforever\n    if <(lvl) = [2]> then\n        show\n        \n    else\n        hide\n    end\nend\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@Sprite6\n\nwhen I receive [hi v]\ngo to x: (0) y: (7)\nshow\nforever\n    go to [back v] layer\n    set y to (([y position v] of [dude v]) * (-0.1))\n    set x to (([x position v] of [dude v]) * (-0.1))\nend\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [3.141592653589..... v]\nhide\n\n@Sprite7\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen [timer v] > (0.3)\n\nwhen flag clicked\nbroadcast (3.141592653589..... v)\n\nbroadcast (billy v)\nbroadcast (noice v)\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nbroadcast (noice v)\n\n@Sprite8\n\nwhen flag clicked\n\ngo to x: (0) y: (0)\nset [ghost v] effect to (50)\nshow\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\n\nwhen [timer v] > (0)\nshow\nset [ghost v] effect to (0)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen I receive [billy v]\nforever\n    go to [front v] layer\nend\n\n@Sprite9\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    change [var;timer v] by (0.11111)\nend\n\nwhen this sprite clicked\nbroadcast (hi v)\n\nwhen I receive [hi v]\nstop all sounds\nforever\n    play sound [2019-12-09_-_Retro_Forest_-_David_Fesliyan v] until done\nend\n\nwhen flag clicked\nplay sound [2019-01-02_-_8_Bit_Menu_-_David_Renda_-_FesliyanStudios v] until done\n\nwhen I receive [noice v]\nhide\n\nwhen I receive [hi v]\nhide\n\nwhen I receive [3.141592653589..... v]\ngo to x: (0) y: (70)\ngo to [front v] layer\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        repeat until <(size) = [115]>\n            repeat (5)\n                change size by (3)\n            end\n        end\n    else\n        switch costume to (costume1 v)\n        repeat until <(size) = [100]>\n            repeat (5)\n                change size by (-3)\n            end\n        end\n    end\nend\n\nwhen I receive [3.141592653589..... v]\nforever\n    point in direction ((([cos v] of ((var;timer) * (50)) ) * (2)) + (90))\nend\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (0.3)\n    end\n    repeat (30)\n        change y by (-0.3)\n    end\nend\n\n@Sprite10\n\nwhen I receive [3.141592653589..... v]\nshow\nforever\n    switch costume to (costume1 v)\n    wait (3) seconds\n    switch costume to (costume3 v)\n    wait (0.2) seconds\nend\n\nwhen I receive [hi v]\nhide\n\n@Sprite11\n\nwhen I receive [3.141592653589..... v]\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\n\nwhen this sprite clicked\nbroadcast (open menu v)\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        broadcast (close menu v)\n    end\nend\n\nwhen I receive [noice v]\nhide\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (0.3)\n    end\n    repeat (30)\n        change y by (-0.3)\n    end\nend\n\nwhen I receive [3.141592653589..... v]\ngo to x: (0) y: (-20)\ngo to [front v] layer\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        repeat until <(size) = [115]>\n            repeat (5)\n                change size by (3)\n            end\n        end\n    else\n        switch costume to (costume1 v)\n        repeat until <(size) = [100]>\n            repeat (5)\n                change size by (-3)\n            end\n        end\n    end\nend\n\nwhen I receive [3.141592653589..... v]\nforever\n    point in direction ((([cos v] of ((var;timer) * (50)) ) * (2)) + (90))\nend\n\nwhen I receive [hi v]\nhide\n\n@Sprite12\n\nwhen I receive [3.141592653589..... v]\ngo to x: (20) y: (21)\ngo [forward v] (1) layers\nshow\nforever\n    set y to ((mouse y) * (-0.03))\n    set x to ((mouse x) * (-0.03))\nend\n\nwhen I receive [hi v]\nhide\n\nwhen I receive [noice v]\nhide\n\n@Sprite13\n\nwhen flag clicked\nhide\n\nwhen I receive [open menu v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [3.141592653589..... v]\nforever\n    point in direction ((([cos v] of ((var;timer) * (40)) ) * (1.5)) + (90))\nend\n\n@Sprite14\n\nwhen I receive [3.141592653589..... v]\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (0.3)\n    end\n    repeat (30)\n        change y by (-0.3)\n    end\nend\n\nwhen I receive [3.141592653589..... v]\ngo to x: (0) y: (130)\ngo to [front v] layer\nshow\n\nwhen I receive [hi v]\nhide\n\nwhen I receive [3.141592653589..... v]\nforever\n    point in direction ((([cos v] of ((var;timer) * (50)) ) * (2)) + (90))\nend\n\nwhen I receive [noice v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [bossfight v]\ngo to [front v] layer\npoint in direction (90)\nswitch costume to (costume1 v)\nset size to (120) %\ngo to x: (180) y: (-100)\nshow\nwait (1) seconds\nstuff\n\ndefine stuff\nswitch costume to (costume2 v)\nglide (0.5) secs to x: (180) y: (20)\nswitch costume to (costume3 v)\nglide (0.2) secs to x: (180) y: (0)\nswitch costume to (costume1 v)\nwait (1) seconds\nclones\n\ndefine clones\nbroadcast (clones v)\n\ndefine die\nbroadcast (boss defeated! v)\nstart sound [Bomb-Explosion-Big-www v]\nforever\n    hide\nend\n\nwhen I receive [bossfight v]\ndelete this clone\n\nwhen I receive [noice v]\nhide\ndelete this clone\n\nwhen I receive [you win! v]\ndie\n\nwhen I receive [goodbye world v]\nstop [other scripts in sprite v]\nbroadcast (bossfight v)\n\nwhen I receive [idk v]\nhide\n\nwait (2) seconds\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (costume4 v)\nwait (0.2) seconds\nswitch costume to (costume1 v)\nwait (0.2) seconds\nswitch costume to (costume4 v)\nwait (0.2) seconds\nswitch costume to (costume1 v)\nwait (0.2) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen I receive [bossfight v]\nhide\n\nwhen I start as a clone\nswitch costume to (costume5 v)\nshow\ngo to x: (245) y: (pick random (-100) to (100))\nrepeat (130)\n    move (4) steps\n    if <touching (sprite3 v)?> then\n        switch costume to (costume6 v)\n        change [stuff v] by (-1)\n        start sound [Bomb-Explosion-Big-www v]\n        wait (0.2) seconds\n        delete this clone\n    end\nend\nchange [stuff v] by (-1)\nstart sound [Bomb-Explosion-Big-www v]\ndelete this clone\n\nglide (pick random (1) to (2.3)) secs to x: ([x position v] of [dude v]) y: ([y position v] of [dude v])\n\nwhen I receive [bossfight v]\ndelete this clone\n\nwhen I receive [noice v]\nhide\ndelete this clone\n\nwhen I receive [clones v]\nset [stuff v] to [15]\nrepeat (15)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nwait until <(stuff) = [0]>\nbroadcast (you win! v)\n\nwhen I receive [goodbye world v]\nstop [other scripts in sprite v]\nbroadcast (bossfight v)\n\nbroadcast (bossfight v)\n\nwhen I start as a clone\nforever\n    point towards (dude v)\nend\n\nplay sound [Bomb-Explosion-Big-www v] until done\n\n@Sprite16\n\nwhen flag clicked\nhide\n\nwhen I receive [hi v]\nforever\n    show\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n        glide (0.5) secs to x: (-150) y: (137)\n    else\n        switch costume to (costume2 v)\n        glide (0.5) secs to x: (-160) y: (137)\n    end\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen this sprite clicked\nbroadcast (hellohowareyou v)\n\nwhen I receive [bossfight v]\nforever\n    hide\nend\n\n@Sprite17\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nset [ghost v] effect to (50)\nshow\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen I receive [billy v]\nforever\nend\n\ngo [backward v] (1) layers\n\n@Sprite18\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [boss defeated! v]\nstop [other scripts in sprite v]\nshow\nwait (1) seconds\nhide\nwait (1) seconds\nhide\nwait (1) seconds\nshow\nwait (1) seconds\nforever\n    hide\nend\n\n