Sheep Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (logo v)\nset [killed by enemy v] to [0]\nwait (2) seconds\nbroadcast (Fader v)\n\nwhen I receive [main menu v]\nswitch backdrop to (main menu v)\n\nwhen I receive [in game v]\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [1]> then\n            switch backdrop to (level 1 v)\n        end\n        if <(Level) = [2]> then\n            switch backdrop to (level 2 v)\n        end\n        if <(Level) = [3]> then\n            switch backdrop to (level 3 v)\n        end\n        if <(Level) = [4]> then\n            switch backdrop to (level 4 v)\n        end\n        if <(Level) = [5]> then\n            switch backdrop to (level 5 v)\n        end\n        if <(Level) = [6]> then\n            switch backdrop to (level 6 v)\n        end\n        if <(Level) = [7]> then\n            switch backdrop to (level 7 v)\n        end\n        if <(Level) = [8]> then\n            switch backdrop to (level 8 v)\n        end\n        if <(Level) = [9]> then\n            switch backdrop to (level 9 v)\n        end\n        if <(Level) = [10]> then\n            switch backdrop to (level 10 v)\n        end\n        if <(Level) = [11]> then\n            switch backdrop to (level 11 v)\n        end\n        if <(Level) = [12]> then\n            switch backdrop to (level 12 v)\n        end\n        if <(Level) = [13]> then\n            switch backdrop to (level 13 v)\n        end\n        if <(Level) = [14]> then\n            switch backdrop to (level 14 v)\n        end\n        if <(Level) = [15]> then\n            switch backdrop to (level 15 v)\n        end\n    end\nend\n\nwhen I receive [play song v]\nforever\n    set volume to (20) %\n    play sound [Song v] until done\nend\n\nwhen I receive [achievements v]\nswitch backdrop to (achievements v)\n\n@Player\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(Slope) = [8]> or <<not <touching (ground v)?>> or <touching (moving platforms v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(Slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Slope))\nend\n\ndefine Touching Ground <>\nchange [falling v] by (1)\nrepeat until <not <<touching (ground v)?> or <touching (moving platforms v)?>>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [y speed v] to [0]\nend\n\nwhen flag clicked\nhide\nforever\n    if <touching (death sensor v)?> then\n        broadcast (Death v)\n        wait (0.1) seconds\n        go to x: (-198) y: (-17)\n        set [falling v] to [0]\n        set [y speed v] to [0]\n        set [slope v] to [0]\n    end\n    if <<<<<touching (enemy v)?> or <touching (enemy2 v)?>> or <touching (enemy3 v)?>> or <touching (enemy4 v)?>> or <touching (enemy5 v)?>> then\n        broadcast (Death v)\n        wait (0.1) seconds\n        go to x: (-198) y: (-17)\n        set [falling v] to [0]\n        set [y speed v] to [0]\n        set [slope v] to [0]\n        if <(Level) = [14]> then\n            go to x: (-210) y: (-118)\n        end\n    end\n    if <touching (win sensor v)?> then\n        wait (0.1) seconds\n        go to x: (-212) y: (-58)\n    end\n    if <<key (up arrow v) pressed?> and <<touching (ground v)?> or <touching (moving platforms v)?>>> then\n        play sound [Jump v] until done\n    end\nend\n\nwhen I receive [in game v]\npoint in direction (90)\nshow\nforever\n    if <(In Game?) = [Yes]> then\n        go to x: (-212) y: (-55)\n        set [y speed v] to [0]\n        set rotation style [left-right v]\n        set [y speed v] to [0]\n        set [falling v] to [10]\n        forever\n            switch costume to (hitbox v)\n            change [y speed v] by (-1)\n            change y by (Y Speed)\n            Touching Ground <(Y Speed) > [0]>\n            if <(y position) < [-180]> then\n                go to x: (0) y: (100)\n                set [y speed v] to [0]\n            end\n            if <<key (up arrow v) pressed?> and <(Falling) < [3]>> then\n                set [y speed v] to [12]\n            end\n            set [x speed v] to ((X Speed) * (0.7))\n            if <key (right arrow v) pressed?> then\n                change [x speed v] by (1.5)\n            end\n            if <key (left arrow v) pressed?> then\n                change [x speed v] by (-1.5)\n            end\n            if <(X Speed) > [0.5]> then\n                Walking (90) (X Speed)\n            end\n            if <(X Speed) < [-0.5]> then\n                Walking (-90) (X Speed)\n            end\n            switch costume to (sheep v)\n        end\n    end\nend\n\nwhen I receive [death v]\nplay sound [crash cymbal v] until done\n\nwhen I receive [main menu v]\nhide\n\n@Enemy\n\nwhen I receive [in game v]\ngo to x: (197) y: (-58)\nforever\n    if <(In Game?) = [Yes]> then\n        if <<(Level) = [6]> or <(Level) = [9]>> then\n            point in direction (-90)\n            repeat (pick random (5) to (20))\n                move (4) steps\n            end\n            wait (pick random (0.1) to (3)) seconds\n            point in direction (90)\n            repeat (pick random (5) to (20))\n                move (4) steps\n            end\n        end\n        if <(Level) = [7]> then\n            forever\n                point in direction (-90)\n                glide (0.6) secs to x: (151) y: (-58)\n                wait (pick random (0.1) to (3)) seconds\n                point in direction (90)\n                glide (0.6) secs to x: (197) y: (-58)\n                wait (pick random (0.1) to (3)) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [killed by enemy v] by (1)\n        wait (0.1) seconds\n    end\n    if <<<<(Level) = [6]> or <(Level) = [7]>> or <(Level) = [9]>> and <(In Game?) = [Yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nset [already got this? v] to [No]\nhide\nwait until <touching (player v)?>\nif <(Already got this?) = [No]> then\n    set [achievement v] to [Killed by NInja]\n    wait (0.1) seconds\n    set [already got this? v] to [0]\nend\n\n@Enemy2\n\nwhen I receive [in game v]\ngo to x: (-73) y: (-58)\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [9]> then\n            point in direction (-90)\n            repeat (pick random (5) to (20))\n                move (4) steps\n            end\n            wait (pick random (0.1) to (3)) seconds\n            point in direction (90)\n            repeat (pick random (5) to (20))\n                move (4) steps\n            end\n        end\n        if <(Level) = [11]> then\n            go to x: (148) y: (51)\n            forever\n                point in direction (90)\n                glide (0.6) secs to x: (224) y: (51)\n                wait (pick random (0.1) to (3)) seconds\n                point in direction (-90)\n                glide (0.6) secs to x: (148) y: (51)\n                wait (pick random (0.1) to (3)) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [killed by enemy v] by (1)\n        wait (0.1) seconds\n    end\n    if <<<(Level) = [9]> or <(Level) = [11]>> and <(In Game?) = [Yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nhide\nwait until <touching (player v)?>\nif <(Already got this?) = [No]> then\n    set [achievement v] to [Killed by NInja]\n    wait (0.1) seconds\n    set [already got this? v] to [0]\nend\n\n@Enemy3\n\nwhen I receive [in game v]\ngo to x: (197) y: (-58)\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [11]> then\n            go to x: (40) y: (-10)\n            forever\n                point in direction (-90)\n                glide (0.6) secs to x: (-40) y: (-10)\n                wait (pick random (0.1) to (3)) seconds\n                point in direction (90)\n                glide (0.6) secs to x: (40) y: (-10)\n                wait (pick random (0.1) to (3)) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [killed by enemy v] by (1)\n        wait (0.1) seconds\n    end\n    if <<(Level) = [11]> and <(In Game?) = [Yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nhide\nwait until <touching (player v)?>\nif <(Already got this?) = [No]> then\n    set [achievement v] to [Killed by NInja]\n    wait (0.1) seconds\n    set [already got this? v] to [0]\nend\n\n@Enemy4\n\nwhen I receive [in game v]\ngo to x: (197) y: (-58)\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [12]> then\n            go to x: (145) y: (107)\n            forever\n                switch costume to (left v)\n                glide (5) secs to x: (-209) y: (-126)\n                wait (pick random (0.1) to (3)) seconds\n                switch costume to (right v)\n                glide (5) secs to x: (145) y: (107)\n                wait (pick random (0.1) to (3)) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [killed by enemy v] by (1)\n        wait (0.1) seconds\n    end\n    if <<(Level) = [12]> and <(In Game?) = [Yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nhide\nwait until <touching (player v)?>\nif <(Already got this?) = [No]> then\n    set [achievement v] to [Killed by NInja]\n    wait (0.1) seconds\n    set [already got this? v] to [0]\nend\n\n@Enemy5\n\nwhen I receive [in game v]\ngo to x: (-216) y: (-30)\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [14]> then\n            go to x: (-216) y: (-30)\n            forever\n                point in direction (90)\n                glide (5) secs to x: (100) y: (-30)\n                wait (pick random (0.1) to (3)) seconds\n                point in direction (-90)\n                glide (5) secs to x: (-216) y: (-30)\n                wait (pick random (0.1) to (3)) seconds\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [killed by enemy v] by (1)\n        wait (0.1) seconds\n    end\n    if <<(Level) = [14]> and <(In Game?) = [Yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nhide\nwait until <touching (player v)?>\nif <(Already got this?) = [No]> then\n    set [achievement v] to [Killed by NInja]\n    wait (0.1) seconds\n    set [already got this? v] to [0]\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (level 1 v)\nset [ghost v] effect to (100)\ngo to x: (0) y: (1)\nhide\n\nwhen I receive [in game v]\nshow\nforever\n    set [ghost v] effect to (100)\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (level 9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (level 10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (level 11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (level 13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (level 14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (level 15 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (level 16 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (level 17 v)\n    end\n    if <(Level) = [18]> then\n        switch costume to (level 18 v)\n    end\n    if <(Level) = [19]> then\n        switch costume to (level 19 v)\n    end\n    if <(Level) = [20]> then\n        switch costume to (level 20 v)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\n@Moving Platforms\n\nwhen flag clicked\nswitch costume to (level 13 v)\ngo to x: (0) y: (1)\nhide\n\nwhen I receive [in game v]\nwait until <(Level) = [13]>\ngo to x: (-9) y: (1)\nshow\nswitch costume to (level 13 v)\nrepeat until <(Level) = [14]>\n    go [backward v] (100) layers\n    glide (3) secs to x: (101) y: (1)\n    go [backward v] (100) layers\n    glide (3) secs to x: (-9) y: (1)\n    go [backward v] (100) layers\nend\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [in game v]\nwait until <(Level) = [14]>\nhide\n\n@Instructions\n\nwhen flag clicked\nswitch costume to (level 1 v)\ngo to x: (0) y: (-40)\nhide\nforever\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (nothing v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (nothing v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (nothing v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (level 13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (nothing v)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [in game v]\nshow\n\n@Folliage\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen I receive [in game v]\nshow\nforever\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (level 10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (level 11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (level 13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (level 14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (level 15 v)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\n@Death Sensor\n\nwhen I receive [in game v]\nshow\n\nwhen I receive [main menu v]\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nhide\nwait until <touching (player v)?>\nset [achievement v] to [Fall to death]\nwait until <(Death) = [10]>\nset [achievement v] to [Fall to death x10]\nwait until <(Death) = [50]>\nset [achievement v] to [Fall to death x50]\nwait until <(Death) = [100]>\nset [achievement v] to [Fall to death x100]\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [death v] by (1)\n        wait (0.1) seconds\n    end\nend\n\n@Win Sensor\n\nwhen flag clicked\nset [already finished? v] to [No]\nset [ghost v] effect to (100)\ngo to x: (295) y: (104)\nset [level v] to [1]\nhide\nforever\n    if <touching (player v)?> then\n        change [level v] by (1)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [in game v]\nshow\nwait until <(Level) = [16]>\nbroadcast (Fade to menu v) and wait\nset [already finished? v] to [Yes]\nset [level v] to [1]\n\nwhen flag clicked\nwait until <(Level) = [16]>\nif <(Already finished?) = [No]> then\n    set [achievement v] to [Finish Levels]\nend\n\n@Level Indicator\n\nwhen flag clicked\nswitch costume to (level 1 v)\ngo to x: (-198) y: (165)\ngo to [front v] layer\nhide\nforever\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (level 9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (level 10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (level 11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (level 13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (level 14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (level 15 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (level 16 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (level 17 v)\n    end\n    if <(Level) = [18]> then\n        switch costume to (level 18 v)\n    end\n    if <(Level) = [19]> then\n        switch costume to (level 19 v)\n    end\n    if <(Level) = [20]> then\n        switch costume to (level 20 v)\n    end\nend\n\nwhen I receive [in game v]\nshow\n\nwhen I receive [main menu v]\nhide\n\n@Exit Button\n\nwhen flag clicked\nswitch costume to (normal v)\ngo to x: (188) y: (164)\ngo to [front v] layer\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (highlighted v)\n    else\n        switch costume to (normal v)\n    end\n    if <touching (player v)?> then\n        switch costume to (touching sheep v)\n    end\nend\n\nwhen I receive [in game v]\nshow\n\nwhen this sprite clicked\nbroadcast (Fade to menu v)\nplay sound [Select v] until done\n\nwhen I receive [main menu v]\nhide\n\n@Trophy\n\nwhen flag clicked\nset [achievement v] to [None]\nset [death v] to [0]\ngo to x: (0) y: (240)\ngo to [front v] layer\nhide\nforever\n    if <(Achievement) = [Fall to death]> then\n        switch costume to (death v)\n        go to x: (0) y: (240)\n        broadcast (Achievement v)\n        set [achievement 1 v] to [Unlocked]\n        show\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\n    if <(Achievement) = [Fall to death x10]> then\n        switch costume to (death x10 v)\n        go to x: (0) y: (240)\n        show\n        broadcast (Achievement v)\n        set [achievement 2 v] to [Unlocked]\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\n    if <(Achievement) = [Fall to death x50]> then\n        switch costume to (death x50 v)\n        go to x: (0) y: (240)\n        show\n        broadcast (Achievement v)\n        set [achievement 3 v] to [Unlocked]\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\n    if <(Achievement) = [Killed by Ninja]> then\n        switch costume to (killed by ninja v)\n        go to x: (0) y: (240)\n        show\n        broadcast (Achievement v)\n        set [achievement 4 v] to [Unlocked]\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\n    if <(Achievement) = [Fall to death x100]> then\n        switch costume to (death x100 v)\n        go to x: (0) y: (240)\n        show\n        broadcast (Achievement v)\n        set [achievement 5 v] to [Unlocked]\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\n    if <(Achievement) = [Finish Levels]> then\n        switch costume to (finish levels v)\n        go to x: (0) y: (240)\n        show\n        broadcast (Achievement v)\n        set [achievement 6 v] to [Unlocked]\n        glide (1) secs to x: (0) y: (181)\n        wait (5) seconds\n        glide (1) secs to x: (0) y: (240)\n        hide\n        set [achievement v] to [None]\n    end\nend\n\nwhen I receive [achievement v]\nplay sound [Achievement sound effect \(from Geometry Dash\).mp3 v] until done\n\nwhen I receive [main menu v]\nhide\n\n@UFO\n\nwhen flag clicked\nforever\n    if <(In Game?) = [Yes]> then\n        if <<<(Level) = [5]> or <(Level) = [7]>> or <(Level) = [15]>> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (108) y: (9)\nhide\nforever\n    if <(Level) = [5]> then\n        glide (1) secs to x: (108) y: (-9)\n        glide (1) secs to x: (108) y: (9)\n    end\n    if <(Level) = [6]> then\n        go to x: (-3) y: (9)\n    end\n    if <(Level) = [7]> then\n        glide (1) secs to x: (-3) y: (-9)\n        glide (1) secs to x: (-3) y: (9)\n    end\n    if <(Level) = [14]> then\n        go to x: (0) y: (9)\n    end\n    if <(Level) = [15]> then\n        glide (1) secs to x: (0) y: (-9)\n        glide (1) secs to x: (0) y: (9)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\n@Play Button\n\nwhen flag clicked\ngo to x: (-134) y: (-142)\nset [in game? v] to [No]\ngo to [front v] layer\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (highlighted v)\n    else\n        switch costume to (normal v)\n    end\nend\n\nwhen I receive [main menu v]\nshow\n\nwhen I receive [in game v]\nhide\n\nwhen this sprite clicked\nbroadcast (Fader 2 v)\nplay sound [Select v] until done\n\nwhen I receive [achievements v]\nhide\n\n@Achievements Button\n\nwhen flag clicked\ngo to x: (100) y: (-138)\nset [in game? v] to [No]\ngo to [front v] layer\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (highlighted v)\n    else\n        switch costume to (normal v)\n    end\nend\n\nwhen I receive [in game v]\nhide\n\nwhen I receive [main menu v]\nshow\n\nwhen I receive [achievements v]\nhide\n\nwhen this sprite clicked\nbroadcast (Fade to Achievements v)\nplay sound [Select v] until done\n\n@Back Button\n\nwhen flag clicked\nset [achievement 1 v] to [Locked]\nset [achievement 2 v] to [Locked]\nset [achievement 3 v] to [Locked]\nset [achievement 4 v] to [Locked]\nset [achievement 5 v] to [Locked]\nset [achievement 6 v] to [Locked]\ngo to x: (0) y: (-10)\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen this sprite clicked\nbroadcast (Fade to menu v)\nplay sound [Select v] until done\n\nwhen I receive [achievements v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (highlighted v)\n    else\n        switch costume to (normal v)\n    end\nend\n\n@Fader\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen I receive [fader v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nbroadcast (Main Menu v)\nbroadcast (Play song v)\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [fader 2 v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nbroadcast (In Game v)\nset [in game? v] to [Yes]\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [fade to menu v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nset [in game? v] to [No]\nbroadcast (Main Menu v)\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [fade to achievements v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nset [in game? v] to [No]\nbroadcast (Achievements v)\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@Achievement 1\n\nwhen flag clicked\ngo to x: (-46) y: (154)\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 1) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\n@Achievement 2\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 2) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-46) y: (110)\nhide\n\nwhen I receive [main menu v]\nhide\n\n@Achievement 3\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 3) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-46) y: (67)\nhide\n\nwhen I receive [main menu v]\nhide\n\n@Achievement 4\n\nwhen flag clicked\ngo to x: (-46) y: (-17)\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 4) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\n@Achievement 5\n\nwhen flag clicked\ngo to x: (-46) y: (25)\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 5) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\n@Achievement 6\n\nwhen flag clicked\ngo to x: (-46) y: (-59)\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [achievements v]\nshow\nforever\n    if <(Achievement 6) = [Unlocked]> then\n        switch costume to (unlocked v)\n    else\n        switch costume to (locked v)\n    end\nend\n\n@UFO2\n\nwhen flag clicked\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [15]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (-163) y: (12)\nhide\nforever\n    if <(Level) = [14]> then\n        go to x: (-163) y: (9)\n    end\n    if <(Level) = [15]> then\n        glide (1.5) secs to x: (-163) y: (-12)\n        glide (1.5) secs to x: (-163) y: (12)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\n@UFO3\n\nwhen flag clicked\nforever\n    if <(In Game?) = [Yes]> then\n        if <(Level) = [15]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (163) y: (12)\nhide\nforever\n    if <(Level) = [14]> then\n        go to x: (163) y: (9)\n    end\n    if <(Level) = [15]> then\n        glide (1.3) secs to x: (163) y: (-20)\n        glide (1.3) secs to x: (163) y: (6)\n    end\nend\n\nwhen I receive [main menu v]\nhide\n\n
Using the arrow keys, control the sheep towards the rightmost side of the screen. Jump cliffs and enemies to avoid death.