The Magic Potion- A Platformer/ Games
@Stage\n\n@platformer\n\ndefine speed\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (levels v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen I receive [2nd click v]\nforever\n    if <(x position) = [241]> then\n        start sound [Collect v]\n        change [level v] by (1)\n        go to x: (-306) y: (-72)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [2nd click v]\nswitch costume to (costume1 v)\ngo to x: (-306) y: (-72)\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <touching (jump v)?> then\n        set [y v] to [20]\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        switch costume to (costume1 v)\n        change [x v] by (1)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        switch costume to (costume2 v)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        speed\n        if <touching (levels v)?> then\n            change y by (-6)\n            xcoll\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n                set [y v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [y v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        ycoll\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(y) < [0]>> then\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd click v]\nshow\n\nwhen flag clicked\nforever\n    play sound [Emotional Piano v] until done\nend\n\nwhen I receive [2nd click v]\nforever\n    if <touching (spikes v)?> then\n        broadcast (hi v)\n        start sound [Bite v]\n        go to x: (-306) y: (-72)\n    end\nend\n\nwhen I receive [2nd click v]\nforever\n    if <key (s v) pressed?> then\n        change [level v] by (1)\n        wait (0.5) seconds\n    end\n    if <(level) = [16]> then\n        stop [this script v]\n    end\nend\n\n@levels\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd click v]\ngo to x: (36) y: (28)\nforever\n    switch costume to (level)\nend\n\nwhen I receive [2nd click v]\nshow\n\nhide\n\nhide\n\n@spikes\n\nwhen I receive [2nd click v]\ngo to x: (-16) y: (35)\nshow\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd click v]\n\nset [level v] to [12]\n\nhide\n\n@jump\n\nwhen I receive [2nd click v]\ngo to [front v] layer\nshow\nset size to (70) %\ngo to x: (121) y: (-51)\n\nwhen I receive [hi v]\ngo to x: (121) y: (-51)\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    go to x: (121) y: (-51)\nend\n\n@text\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\nswitch costume to (1 v)\n\nwhen I receive [2nd click v]\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [2nd click v]\nshow\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-13) y: (-12)\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\nforever\n    if <mouse down?> then\n        start sound [Rip v]\n        broadcast (1st click v)\n        wait (0.1) seconds\n        stop [this script v]\n    end\nend\n\nwhen I receive [1st click v]\nswitch costume to (costume2 v)\nforever\n    wait (0.2) seconds\n    if <mouse down?> then\n        start sound [Rip v]\n        broadcast (2nd click v)\n        hide\n        stop [this script v]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (27) y: (-59)\nshow\ngo to [back v] layer\n\nwhen I receive [2nd click v]\nhide\n\nset [level v] to [14]\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nshow\n\n
Warning: This is not made to be hard, it`s made to be fun.\n\nControls: At first with the letter just click on it.\nThen use WASD or the arrows.\nPress S to skip.