Adventurer: A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [costume edit v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [show all v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [win edit v]\nswitch backdrop to (win v)\n\nwhen I receive [troll lose v]\nforever\n    switch backdrop to (backdrop4 v)\nend\n\nwhen I receive [troll lose v]\nwait (0.3) seconds\nplay sound [Dun Dun Dunnn v] until done\n\n@Adventurer\n\nwhen flag clicked\nshow\npoint in direction (90)\nswitch costume to (costume1 v)\ngo to x: (-206) y: (70)\nset rotation style [left-right v]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-2)\n    change y by (Y Velocity)\n    change [in air v] by (1)\n    Handle Ground <(Y Velocity) > [0]>\nend\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        Wallk [-6]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        Wallk [6]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-170]> then\n        set [y velocity v] to [0]\n        set y to (170)\n    end\nend\n\ndefine Handle Ground <moving up>\nrepeat until <not <touching (wall v)?>>\n    if <moving up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [in air v] to [0]\n    end\n    set [y velocity v] to [0]\nend\n\ndefine Wallk (steps)\nchange x by (steps)\nset [wall lift v] to [0]\nrepeat until <<not <touching (wall v)?>> or <(Wall Lift) = [8]>>\n    change y by (1)\n    change [wall lift v] by (1)\nend\nif <(Wall Lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(In Air) < [8]>> then\n        set [y velocity v] to [14]\n    end\nend\n\nwhen I receive [next level v]\npoint in direction (90)\ngo to x: (-206) y: (70)\n\nwhen I receive [adventurer edit v]\ngo to x: (-206) y: (70)\nbroadcast (Heart Decrease v)\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [costume desicion v]\nswitch costume to (costume1 v)\n\nwhen I receive [costume decision 2 v]\nswitch costume to (costume2 v)\n\nwhen I receive [costume decision 3 v]\nswitch costume to (costume3 v)\n\nwhen I receive [show all v]\nshow\npoint in direction (90)\ngo to x: (-206) y: (70)\nset [maps collected v] to [0]\n\nwhen I receive [costume edit v]\nhide\n\n@Wall\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Win Edit v)\n        play sound [Triumph v] until done\n        set volume to (0) %\n        wait until <color (#35c27c) is touching (#51294e)?>\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Win Edit v)\n        wait (0.5) seconds\n    end\nend\n\nwhen I receive [troll lose v]\nset volume to (0) %\n\n@Torch\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <touching (adventurer v)?> then\n        broadcast (Adventurer Edit v)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [next level edit v]\nshow\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (Guard Edit v)\n        wait until <color (#be7f84) is touching (#81af38)?>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Guard Edit 2 v)\n        wait until <color (#be7f84) is touching (#81af38)?>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Guard Edit 3 v)\n        broadcast (Map Edit v)\n        wait until <color (#be7f84) is touching (#81af38)?>\n    end\nend\n\nwhen I receive [hide all v]\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Guard Edit FIANLE v)\n        wait until <color (#be7f84) is touching (#81af38)?>\n    end\nend\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\nwhen flag clicked\nforever\n    change [brightness v] effect by (25)\n    wait (0.2) seconds\n    change [brightness v] effect by (-25)\n    wait (0.2) seconds\nend\n\n@Invisible Line\n\nwhen flag clicked\nshow\nforever\n    if <<touching (adventurer v)?> and <<(Maps Collected) = [1]> or <(Maps Collected) > [1]>>> then\n        broadcast (Next Level v)\n        broadcast (Next level Edit v)\n        play sound [Teleport2 v] until done\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Journey Of Wonders v] until done\nend\n\nwhen I receive [win edit v]\nset volume to (0) %\n\nwhen I receive [hide all v]\nhide\n\n@Guards\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset rotation style [left-right v]\nforever\n    if <touching (adventurer v)?> then\n        broadcast (Adventurer Edit v)\n        play sound [Ricochet v] until done\n    end\nend\n\nwhen I receive [next level edit v]\nnext costume\n\nwhen I receive [next level edit v]\nwait (0.1) seconds\nshow\n\n    repeat (20)\n        move (6) steps\n        wait (0.05) seconds\n    end\n    repeat (20)\n        move (-6) steps\n        wait (0.05) seconds\n    end\nend\n\nwhen I receive [guard edit v]\ngo to x: (119) y: (-68)\n\nwhen I receive [guard edit 2 v]\ngo to x: (223) y: (-67)\n\nwhen I receive [guard edit 3 v]\ngo to x: (268) y: (-67)\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [guard edit fianle v]\ngo to x: (170) y: (-65)\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\n@Text\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [hide all v]\nhide\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\nwhen flag clicked\nforever\n    if <key (n v) pressed?> then\n        if <(backdrop [number v]) = [1]> then\n            wait until <not <key (n v) pressed?>>\n            broadcast (Next level Edit v)\n            broadcast (Next Level v)\n            play sound [Teleport2 v] until done\n        end\n    end\nend\n\n@Map\n\nwhen flag clicked\nwait (0.01) seconds\nswitch costume to (costume1 v)\ngo to x: (44) y: (-25)\nshow\n\nwhen flag clicked\nset [maps collected v] to [0]\n\nwhen I receive [next level v]\nset [maps collected v] to [0]\nnext costume\nshow\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <touching (adventurer v)?> then\n        change [maps collected v] by (1)\n        hide\n        play sound [Rip v] until done\n    end\nend\n\nwhen I receive [map edit v]\ngo to x: (48) y: (-63)\n\nwhen I receive [win edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [adventurer edit v]\nshow\nset [maps collected v] to [0]\n\n@Costumes\n\nwhen this sprite clicked\nbroadcast (Costume Edit v)\nplay sound [Slide Whistle v] until done\n\nwhen flag clicked\nset size to (25) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [costume edit v]\nhide\n\nwhen I receive [show all v]\nshow\n\nwhen I receive [win edit v]\nhide\n\n@Adventurer Costume\n\nwhen I receive [costume edit v]\nshow\n\nwhen this sprite clicked\nbroadcast (Costume Desicion v)\nbroadcast (Show All v)\nhide\nplay sound [Slide Whistle v] until done\n\nwhen I receive [costume decision 3 v]\nhide\n\nwhen I receive [costume decision 2 v]\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (30) %\n    else\n        set size to (20) %\n    end\nend\n\nwhen I receive [play v]\nhide\n\n@Adventurer Costume 2\n\nwhen I receive [costume edit v]\nshow\n\nwhen this sprite clicked\nbroadcast (Costume Decision 2 v)\nbroadcast (Show All v)\nhide\nplay sound [Slide Whistle v] until done\n\nwhen I receive [costume decision 3 v]\nhide\n\nwhen I receive [costume desicion v]\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (30) %\n    else\n        set size to (20) %\n    end\nend\n\nwhen I receive [play v]\nhide\n\n@Adventurer Costume 3\n\nwhen I receive [costume edit v]\nshow\n\nwhen this sprite clicked\nbroadcast (Costume Decision 3 v)\nbroadcast (Show All v)\nhide\nplay sound [Slide Whistle v] until done\n\nwhen I receive [costume desicion v]\nhide\n\nwhen I receive [costume decision 2 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (30) %\n    else\n        set size to (20) %\n    end\nend\n\n@Surprise\n\nwhen flag clicked\nhide\n\nwhen I receive [win edit v]\nshow\nforever\n    if <touching (adventurer v)?> then\n        wait (0.2) seconds\n        hide\n        broadcast (Hide All v)\n        broadcast (Troll Lose v) and wait\n    end\nend\n\nwhen I receive [hide all v]\nforever\n    hide\nend\n\n
Arrow keys or WASD to move around. All levels are possible.\nOkay, I admit it's pretty hard.\nYou must collect the map in each level, or else you won't be able to go to the next. \nIf you get stuck on a level, press "n" to skip. Jump over guards and and torches. \nFull Screen is recommended. This was my first platformer, so don't judge me if it's bad. \nPress the octagon shaped person at the top left corner for skins. Music: Journey of Wonders. \nRest: all from the Scratch Library. Art: 100% by me.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nDid anyone get the troll at the end? Lol