grey - a creative platformer #games

Instructions: use the arrow keys to move\n\nFOLLOW ME!\nI WANNA HAVE MORE FOLLOWERS THAN GRIFFPATCH

@Stage\n\nwhen I receive [start v]\nhide variable [time v]\nset [time v] to [0]\nforever\n    wait (0.1) seconds\n    change [time v] by (0.1)\nend\n\nwhen I receive [retry v]\nstop [other scripts in sprite v]\nshow variable [time v]\n\n@Figur9\n\nwhen I receive [start v]\ngo to [front v] layer\npoint in direction (90)\nforever\n    point in direction ((direction) - (1))\nend\n\nwhen I receive [g v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start v]\nswitch backdrop to (bühnenbild1 v)\ngo to x: (218) y: (-69)\nset size to (100) %\nforever\n    repeat (10)\n        change size by (1)\n    end\n    repeat (10)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\nhide\nswitch backdrop to (intro2 v)\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        go to x: (28) y: (40)\n        show\n    end\n    if <(Level) = [9]> then\n        go to x: (70) y: (-70)\n        show\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        go to x: (-177) y: (-80)\n        show\n    end\n    if <(Level) = [12]> then\n        go to x: (-177) y: (-80)\n        show\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        hide\n    end\n    if <(Level) = [15]> then\n        hide\n    end\n    if <(Level) = [16]> then\n        hide\n    end\n    if <(Level) = [17]> then\n        go to x: (-52) y: (79)\n        show\n        stop [this script v]\n    end\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@Figur5\n\nwhen I receive [start v]\nshow\nset [ghost v] effect to (10)\nforever\n    if <(Level) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (15 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (16 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (17 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Figur6\n\nwhen I receive [start v]\npoint in direction (90)\nforever\n    wait (0.01) seconds\n    turn right (15) degrees\n    wait (0.01) seconds\n    turn left (15) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        go to [front v] layer\n        go to x: (-55) y: (22)\n        show\n    end\n    if <(Level) = [4]> then\n        go to [front v] layer\n        go to x: (132) y: (-37)\n        show\n    end\n    if <(Level) = [5]> then\n        go to [front v] layer\n        go to x: (-9) y: (-74)\n        show\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Figur7\n\nwhen I receive [start v]\npoint in direction (90)\nforever\n    wait (0.01) seconds\n    turn right (15) degrees\n    wait (0.01) seconds\n    turn left (15) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [start v]\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        go to [front v] layer\n        go to x: (170) y: (73)\n        show\n    end\n    if <(Level) = [5]> then\n        go to [front v] layer\n        go to x: (81) y: (-74)\n        show\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        go to [front v] layer\n        go to x: (125) y: (42)\n        show\n    end\n    if <(Level) = [10]> then\n        go to [front v] layer\n        go to x: (-65) y: (95)\n        show\n    end\n    if <(Level) = [11]> then\n        go to [front v] layer\n        go to x: (-65) y: (-23)\n        show\n    end\n    if <(Level) = [12]> then\n        go to [front v] layer\n        go to x: (-65) y: (95)\n        show\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        hide\n    end\n    if <(Level) = [15]> then\n        hide\n    end\n    if <(Level) = [16]> then\n        hide\n    end\n    if <(Level) = [17]> then\n        go to [front v] layer\n        go to x: (207) y: (112)\n        show\n        stop [this script v]\n    end\nend\n\n@Figur3\n\nwhen I receive [start v]\nswitch costume to (1 v)\ngo to [front v] layer\n\nwhen I receive [vorst v]\nshow\nswitch costume to (1 v)\ngo to [front v] layer\ngo [backward v] (5) layers\n\nwhen flag clicked\nhide variable [your time was v]\n\nwhen I receive [start v]\nhide variable [your time was v]\n\nwhen I receive [start v]\nshow\nforever\n    if <(Level) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (15 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (16 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (17 v)\n    end\n    if <(Level) = [18]> then\n        set [level v] to [0]\n        set [your time was v] to (Time)\n        show variable [your time was v]\n        broadcast (end v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Figur4\n\nwhen I receive [vorst v]\nshow\ngo to [front v] layer\npoint in direction (90)\n\nwhen I receive [vorst v]\nshow\ngo to x: (218) y: (-69)\nset size to (100) %\n\nwhen flag clicked\nhide\n\n@player\n\nwhen I receive [start v]\nswitch costume to (kostüm1 v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-225) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.6)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (0.6)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (figur3 v)?> then\n        change y by (1)\n    end\n    if <touching (figur3 v)?> then\n        change y by (1)\n    end\n    if <touching (figur3 v)?> then\n        change y by (1)\n    end\n    if <touching (figur3 v)?> then\n        change y by (1)\n    end\n    if <touching (figur3 v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (figur3 v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (figur3 v)?>> then\n        set [y v] to [10]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (figur4 v)?> then\n        change [level v] by (1)\n        switch costume to (kostüm1 v)\n        next backdrop\n        set x to (-225)\n        set y to (-60)\n    end\n    if <touching (figur5 v)?> then\n        switch costume to (kostüm1 v)\n        set [ghost v] effect to (100)\n        set x to (-225)\n        set y to (-60)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (figur6 v)?> then\n        switch costume to (kostüm1 v)\n        set [ghost v] effect to (100)\n        set x to (-225)\n        set y to (-60)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (figur7 v)?> then\n        switch costume to (kostüm1 v)\n        set [ghost v] effect to (100)\n        set x to (-225)\n        set y to (-60)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (figur9 v)?> then\n        next costume\n        broadcast (g v)\n        wait (3) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nbroadcast (vorst v)\n\nwhen I receive [end v]\nwait (1) seconds\nhide\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@Figur8\n\nwhen this sprite clicked\nhide\nbroadcast (start v)\n\nif <(Level) = [17]> then\n    switch costume to (17 v)\nend\n\nwhen I receive [retry v]\npoint in direction (100)\nforever\n    repeat (20)\n        point in direction ((direction) - (-1))\n    end\n    repeat (20)\n        point in direction ((direction) - (1))\n    end\nend\n\nwhen I receive [retry v]\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (10)\n    else\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [vorst v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (10)\n    else\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [vorst v]\npoint in direction (80)\nforever\n    repeat (20)\n        point in direction ((direction) - (-1))\n    end\n    repeat (20)\n        point in direction ((direction) - (1))\n    end\nend\n\nwhen I receive [end v]\nswitch costume to (kostüm2 v)\n\nwhen I receive [intro v]\nswitch costume to (kostüm1 v)\nbroadcast (vorst v)\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\n\n@Figur10\n\nwhen I receive [vorst v]\nstart sound [$RC2PEJD v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (10)\n    else\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [vorst v]\npoint in direction (100)\nforever\n    repeat (20)\n        point in direction ((direction) - (1))\n    end\n    repeat (20)\n        point in direction ((direction) - (-1))\n    end\nend\n\nwhen I receive [start v]\n\nwhen this sprite clicked\nchange [sound v] by (-30)\nif <(sound) < [0]> then\n    set [sound v] to [90]\nend\nset volume to (sound) %\nnext costume\n\nwhen I receive [intro v]\nswitch costume to (kostüm1 v)\nset volume to (90) %\nset [sound v] to [90]\nforever\n    play sound [$RC2PEJD v] until done\nend\n\nwhen I receive [vorst v]\nset size to (100) %\ngo to x: (65) y: (10)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\n@Figur12\n\nwhen I receive [start v]\nhide\n\nwhen I receive [end v]\nswitch costume to (kostüm2 v)\nbroadcast (retry v)\ngo to [front v] layer\n\nwhen I receive [vorst v]\nhide variable [time v]\nshow\n\nswitch backdrop to (intro2 v)\n\nwhen I receive [intro v]\ngo to [front v] layer\nswitch costume to (kostüm3 v)\nbroadcast (vorst v)\n\nwhen flag clicked\nbroadcast (vorst v)\nhide\n\n