~MAGIC~ PLATFORMER
@Stage\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start game v]\nset size to (100) %\nset [level v] to [1]\ngo to x: (-192) y: (-100)\nforever\n    point in direction (90)\n    show\n    go\nend\n\ndefine go\nchange [yv v] by (-0.5)\nif <(Level) = [23]> then\n    hide\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    switch costume to (costume2 v)\n    change [xv v] by (-0.7)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    switch costume to (costume1 v)\n    change [xv v] by (0.7)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                change x by ((Xv) * (-1))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    set [yv v] to [8]\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Yv)\nif <touching (level v)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-0.5)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (level v)?>> then\n    set [yv v] to [8]\nend\nchange y by (0.5)\nif <touching (finish level v)?> then\n    broadcast (Next level v)\nend\nif <touching (bad things v)?> then\n    repeat (10)\n        wait (0.1) seconds\n        change [ghost v] effect by (10)\n    end\n    go to x: (-192) y: (-87)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\nif <<touching color (#00ff2c)?> and <touching (trampolines v)?>> then\n    set [yv v] to [14]\nend\n\nwhen I receive [next level v]\nset size to (100) %\nchange [level v] by (1)\nswitch costume to (costume1 v)\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-192) y: (-100)\n\n@Trampolines\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\n@Finish Level\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [start game v]\nshow\ngo to x: (188) y: (-39)\nset size to (100) %\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [2]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [3]> then\n        go to x: (175) y: (132)\n    end\n    if <(Level) = [4]> then\n        go to x: (188) y: (-39)\n    end\n    if <(Level) = [5]> then\n        set size to (70) %\n        go to x: (200) y: (200)\n    end\n    if <(Level) = [6]> then\n        go to x: (200) y: (56)\n    end\n    if <(Level) = [7]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [8]> then\n        go to x: (202) y: (120)\n    end\n    if <(Level) = [9]> then\n        go to x: (202) y: (-68)\n    end\n    if <(Level) = [10]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [11]> then\n        go to x: (202) y: (163)\n    end\n    if <(Level) = [12]> then\n        go to x: (206) y: (70)\n    end\n    if <(Level) = [13]> then\n        go to x: (163) y: (164)\n    end\n    if <(Level) = [14]> then\n        go to x: (208) y: (198)\n    end\n    if <(Level) = [15]> then\n        go to x: (205) y: (-69)\n    end\n    if <(Level) = [16]> then\n        go to x: (198) y: (196)\n    end\n    if <(Level) = [17]> then\n        go to x: (200) y: (168)\n    end\n    if <(Level) = [18]> then\n        go to x: (200) y: (168)\n    end\n    if <(Level) = [19]> then\n        go to x: (200) y: (20)\n    end\n    if <(Level) = [20]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [21]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [22]> then\n        go to x: (200) y: (-71)\n    end\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nshow\ngo to x: (20) y: (5)\n\nwhen I receive [next level v]\nnext costume\nif <(Level) = [23]> then\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        show\n        change [color v] effect by (25)\n    end\nend\n\n@Bad things\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (-59) y: (79)\n    end\n    if <(Level) = [2]> then\n        go to x: (102) y: (-104)\n    end\n    if <(Level) = [3]> then\n        go to x: (102) y: (-104)\n    end\n    if <(Level) = [4]> then\n        go to x: (-59) y: (82)\n    end\n    if <(Level) = [5]> then\n        go to x: (-61) y: (100)\n    end\n    if <(Level) = [6]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [7]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [8]> then\n        go to x: (-69) y: (100)\n    end\n    if <(Level) = [9]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [10]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [11]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [12]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [13]> then\n        go to x: (-117) y: (4)\n    end\n    if <(Level) = [14]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [15]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [16]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [17]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [18]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [19]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [20]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [21]> then\n        go to x: (-40) y: (4)\n    end\n    if <(Level) = [22]> then\n        go to x: (-40) y: (4)\n    end\nend\n\n@First thing\n\nwhen flag clicked\nswitch costume to (scratch gif v)\nshow\nrepeat (11)\n    wait (0.1) seconds\n    next costume\nend\nplay sound [Tada v] until done\nbroadcast (Finish first thing v)\nhide\nbroadcast (Start game v)\nforever\n    play sound [lily1 v] until done\n    play sound [lily2 v] until done\n    play sound [lily3 v] until done\nend\n\n@Objeto2\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [23]> then\n        show\n        change [color v] effect by (25)\n        turn right (15) degrees\n        wait (0.2) seconds\n        turn left (30) degrees\n    end\nend\n\n@Objeto3\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [23]> then\n        show\n        change [color v] effect by (25)\n        turn right (15) degrees\n        wait (0.2) seconds\n        turn left (30) degrees\n    end\nend\n\n
~~~~~~~~~~~~~~~~~~~~Lily~~~~~~~~~~~~~~~~~~~~~\n\n-Use arrows keys to move - avoid spikes\n-22 levels