Adventure -A Platformer-  #all #games
@Stage\n\n@Ground\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\ngo to x: (35) y: (31)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [play v]\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\n@Net\n\nwhen I receive [play v]\nforever\n    play sound [Portis - Ocean \(2\) v] until done\nend\n\n@Net 2\n\n@Coach\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite1\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (1)\nend\n\nwhen flag clicked\nplay sound [Electric by bubblebee3 v] until done\n\nwhen flag clicked\nset volume to (100) %\n\nwhen I receive [play v]\nset volume to (0) %\n\n@Button2\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (timer)\n    reset timer\nend\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (500)) ) * (10)))\n    if <(distance to [mouse-pointer v]) < [50]> then\n        set size to ((size) + (((100) - (size)) / (3))) %\n    else\n        set size to ((size) + (((80) - (size)) / (3))) %\n    end\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo to x: (-217) y: (-47)\nglide (0.5) secs to x: (38) y: (-34)\n\nwhen flag clicked\nrepeat (20)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nplay sound [Squish Pop v] until done\n\nwhen flag clicked\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Instructions v)\n\nwhen this sprite clicked\nplay sound [Finger Snap v] until done\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nclear graphic effects\n\n@How to play\n\nwhen I receive [hide stuff v]\nhide\ngo to [back v] layer\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [instructions v]\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen I receive [instructions v]\ngo to x: (36) y: (28)\n\nwhen I receive [down v]\nglide (0.5) secs to x: (36) y: (28)\nhide\ngo to [back v] layer\n\nwhen I receive [instructions v]\nglide (1) secs to x: (24) y: (367)\n\n@x\n\nwhen I receive [hide stuff v]\nhide\ngo to [back v] layer\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [instructions v]\nshow\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [instructions v]\ngo to x: (23) y: (90)\nglide (1) secs to x: (23) y: (361)\n\nwhen flag clicked\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n        switch costume to (how to play3 v)\n    else\n        switch costume to (how to play2 v)\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nhide\ngo to [back v] layer\nbroadcast (down v)\n\nwhen this sprite clicked\nplay sound [click v] until done\n\n@Button3\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (timer)\n    reset timer\nend\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (500)) ) * (10)))\n    if <(distance to [mouse-pointer v]) < [50]> then\n        set size to ((size) + (((100) - (size)) / (3))) %\n    else\n        set size to ((size) + (((80) - (size)) / (3))) %\n    end\nend\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo to x: (-219) y: (52)\nglide (0.5) secs to x: (40) y: (44)\n\nwhen flag clicked\nrepeat (20)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nplay sound [Squish Pop v] until done\n\nwhen flag clicked\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Play v)\n\nwhen this sprite clicked\nplay sound [Finger Snap v] until done\n\n@Spikes\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Soccer Ball\n\nwhen [r v] key pressed\nswitch costume to (center v)\nreset x placement [-200]\n\ndefine reset x placement (place)\nset size to (100) %\nshow\ngo to x: (place) y: (-30)\npoint in direction (90)\nReset player variables\n\ndefine If touching\nif <touching (spikes and lava v)?> then\n    reset x placement [-224]\nend\n\ndefine Reset player variables\nset [x v v] to [0]\nset [y v v] to [0]\nhide variable [level v]\nhide variable [y v v]\nhide variable [x v v]\n\nwhen I start as a clone\nrepeat (5)\n    change size by (-5)\n    change [ghost v] effect by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (net v)?> then\n        go to x: (208) y: (-66)\n        broadcast (Next Level v)\n        play sound [Coin v] until done\n    end\nend\n\nwhen I receive [next level v]\nreset x placement [-224]\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo [backward v] (2) layers\nset [level v] to [1]\nset size to (100) %\nreset x placement [-224]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v v] by (.9)\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 [x v v] by (-.9)\n    end\n    turn right (X v) degrees\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X v) * (-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) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <touching (ground v)?> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [15]\n        end\n    end\n    change y by (1)\n    If touching\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        broadcast (Restart v)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-251) y: (-65)\n\nwhen flag clicked\nforever\n    if <touching (kicking boosts v)?> then\n        set [y v v] to [20]\n        play sound [Big Boing v] until done\n    end\nend\n\nwhen flag clicked\nhide variable [timer v]\n\nwhen I receive [play v]\nshow variable [timer v]\n\nwhen flag clicked\nset [timer v] to [0]\n\nwhen I receive [play v]\nset [timer v] to [0]\nforever\n    change [timer v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [yup v]\nswitch costume to (costume1 v)\n\nwhen I receive [play v]\ngo to x: (-215) y: (-63)\n\nwhen flag clicked\nforever\n    if <touching (cactus v)?> then\n        broadcast (Restart v)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\n@Kicking Boosts\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        show\n        go to [front v] layer\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\ngo to x: (36) y: (28)\n\nwhen flag clicked\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        show\n        go to [front v] layer\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        go to x: (-128) y: (145)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        go to x: (36) y: (28)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        hide\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        show\n        go to [front v] layer\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        go to x: (36) y: (28)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        hide\n        go to [back v] layer\n    end\nend\n\n@Cactus\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    repeat (10)\n        change y by (5)\n    end\n    repeat (10)\n        change y by (-5)\n    end\nend\n\nwhen flag clicked\ngo to x: (33) y: (53)\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        show\n        go to [back v] layer\n    end\nend\n\n@The end\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n        go to [front v] layer\n        switch costume to (costume1 v)\n        set [timer v] to (Timer)\n        stop [all v]\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\n
NO MOBILE\n---------------------------------------------------------------\nALL GLITCHES FIXED :D I think...\nWelcome to my best non-scrolling platformer!\nArrow keys/wasd to move. You can wall jump.\nSkip button to skip.\nOther instructions in-game. And btw if you touch the boss's acid particles you will also lose health.\nTell me if there are any glitches.