Guinea Pig Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\n\nwhen I receive [change_obstacle_costume #1 v]\nnext backdrop\n\nwhen backdrop switches to [the end v]\nforever\n    switch backdrop to (the end v)\nend\n\n@fire\n\nwhen flag clicked\nset size to (84) %\nswitch costume to (1 fire v)\ngo to x: (23) y: (-49)\nshow\n\nwhen flag clicked\nforever\n    wait until <touching (guinea pig v)?>\n    broadcast (Bubble_go_to_spawning_point_ v)\nend\n\nwhen flag clicked\nset [level\(s\) v] to [1]\n\nwhen I receive [change_obstacle_costume #1 v]\nhide\n\nwhen I receive [show_fire_again v]\nswitch costume to (1 fire2 v)\nshow\n\n@Levels\n\nwhen flag clicked\nset [level\(s\) v] to [1]\n\nwhen flag clicked\ngo to x: (67) y: (74)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nswitch costume to (wall jump \(sorta\) v)\nshow\n\nwhen backdrop switches to [blue sky 2 3 v]\nswitch costume to (level#2 v)\n\nwhen backdrop switches to [blue sky 2 4 v]\nswitch costume to (level#3 v)\n\nwhen backdrop switches to [blue sky 2 5 v]\nswitch costume to (level#4 v)\n\nwhen backdrop switches to [blue sky 2 6 v]\nswitch costume to (level#5 v)\n\nwhen backdrop switches to [blue sky 2 7 v]\nswitch costume to (level#6 v)\n\nwhen backdrop switches to [blue sky 2 8 v]\nwait (1) seconds\nswitch costume to (level#8 v)\nwait (1) seconds\nswitch costume to (level#7 v)\n\nwhen backdrop switches to [blue sky 2 9 v]\nswitch costume to (level#9 v)\nshow\n\nwhen backdrop switches to [blue sky 2 10 v]\nswitch costume to (level#10 v)\n\nwhen backdrop switches to [blue sky 2 11 v]\nswitch costume to (level#11 v)\n\nwhen backdrop switches to [blue sky 2 12 v]\nswitch costume to (level#12 v)\nbroadcast (change_backdrop_to_12 v)\n\nwhen backdrop switches to [the end v]\nforever\n    switch costume to (ending v)\nend\n\nwhen backdrop switches to [blue sky 2 13 v]\nswitch costume to (level#13 v)\n\nwhen backdrop switches to [blue sky 2 15 v]\nswitch costume to (level#14 v)\n\nwhen backdrop switches to [blue sky 2 16 v]\nswitch costume to (level#15 v)\n\n@button\n\nwhen flag clicked\ngo to x: (-17) y: (55)\nhide\n\nwhen backdrop switches to [blue sky 2 4 v]\ngo to [back v] layer\nshow\n\nwhen flag clicked\nforever\n    wait until <touching (guinea pig v)?>\n    broadcast (cage down v)\nend\n\nwhen backdrop switches to [blue sky 2 5 v]\nforever\n    hide\nend\n\n@cage_trap\n\nwhen flag clicked\ngo to x: (37) y: (174)\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [cage down v]\nforever\n    show\n    go to (guinea pig v)\nend\n\n@guinea pig\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (guinea pig1 v)\nset [x spawn v] to [-195]\nset [y spawn v] to [-90]\ngo to x: (X spawn) y: (Y spawn)\nshow\nset size to (60) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer Engine\nend\n\ndefine Platformer Engine\nchange [y v] by (-0.5)\nif <key (left arrow v) pressed?> then\n    change [x v] by (-0.49)\nend\nif <key (right arrow v) pressed?> then\n    change [x v] by (0.49)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n    change y by (1)\n    if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n        change y by (1)\n        if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n            change y by (1)\n            if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n                change y by (1)\n                if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n                    change y by (1)\n                    if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n                        change y by (1)\n                        if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n                            change y by (1)\n                            if <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n                                change y by (1)\n                                change y by (-6)\n                                change x by ((X) * (-1))\n                                if <key (up arrow v) pressed?> then\n                                    if <(X) > [0]> then\n                                        set [y v] to [7]\n                                        set [x v] to [-4]\n                                    else\n                                        set [x v] to [4]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <<touching color (#00d618)?> or <touching color (#a17575)?>> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<<touching color (#00d618)?> or <touching color (#a17575)?>> and <key (up arrow v) pressed?>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <(x position) > [215]> then\n    change [level\(s\) v] by (1)\n    go to x: (X spawn) y: (Y spawn)\n    broadcast (CHANGE_OBSTACLE_COSTUME #1 v)\nend\n\nwhen I receive [bubble_go_to_spawning_point_ v]\nstart sound [Crunch v]\ngo to x: (X spawn) y: (Y spawn)\n\nwhen flag clicked\nforever\n    wait until <touching color (#aeaeae)?>\n    go to (cage_trap v)\n    say [You lose... Want to play again?]\nend\n\nwhen flag clicked\nforever\n    wait until <<touching color (#abafff)?> or <touching color (#d7c3ff)?>>\n    start sound [Crunch v]\n    go to x: (X spawn) y: (Y spawn)\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Glow v] until done\nend\n\nwhen flag clicked\nforever\n    wait until <touching color (#ff7979)?>\n    start sound [Crunch v]\n    go to x: (X spawn) y: (Y spawn)\nend\n\nwhen [right arrow v] key pressed\nswitch costume to (guinea pig1 v)\n\nwhen [left arrow v] key pressed\nswitch costume to (guinea pig2 v)\n\nwhen flag clicked\nforever\n    wait until <<key (c v) pressed?> and <key (right arrow v) pressed?>>\n    switch costume to (guinea pig3 v)\nend\n\nwhen flag clicked\nforever\n    wait until <<key (c v) pressed?> and <key (left arrow v) pressed?>>\n    switch costume to (guinea pig4 v)\nend\n\nwhen backdrop switches to [blue sky 2 15 v]\nbroadcast (show_fire_again v)\n\n
see inside for code  :3\n500+ views!   \n\n\n10 / 15 / 2020 :\n*Double click the green flag*\n\nStory:\nYou are a guinea pig that got lost and separated from your friend, Mochi. You will need to encounter obstacles to get back to your friend!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nControls :\n- Arrow keys to move\n- [C] to crouch\n---------btw you might need to {press arrow key} and {hold} to jump farther----------\n\nEnemies:\n- Fire, lava, red\n- Purple and pink lines\n- And, obviously, traps    >:)\n\nGlitches / Tricks:\n- [C] and right / left arrow keys to jump really fast\n- up and right / left arrow key (hold) to wall jump\n- [C] and right arrow key to move extra fast\n- right / left arrow key (hold) to increase speed\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n<> ALL LEVELS ARE TESTED AND POSSIBLE\n<> 17 levels\n<> Comment #GUINEAPIGS \n      if you like / love guinea pigs\n<> If you found a different way to get across a level \n     please don't spoil it    :3\n<> Edits everyday!! \n<> Feedback   <33\n<> If you enjoyed please \n     #LikeLoveFollowRemixComment\n\n\n-------------------Credits--------------------\n~ @Amethyst_Heart for everything \n~ Music : Vexendo\n~ Scratch and ST\n~ Bubble (my guinea pig)\n~ @Nekoyo_ for giving me feedback and letting me \n   use her guinea pig, Mochi   :3\n~ All other platformers for inspiring me  <3\n~ YOU for playing  ^-^\n\nTags:\n#GUINEAPIGS #Bubble #Amethyst_Heart #animations #platformers #Nekoyo_ #art #all\n#LikeLoveFollowRemixComment\n\n\n ( •̀ ω •́ )✧\n- @Amethyst_Heart\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\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-----------NEW PLATFORMER COMING SOON-----------