Skeleton in a Devil World PLATFORMER 

Instructions: Skeleton in a Devil World PLATFORMER \n***********************\n- arrows to move\n- kill the devil\n- if you get stuck, click green flag\n- good luck !

@Stage\n\nwhen flag clicked\nswitch backdrop to (bac v)\n\nwhen I receive [end intro v]\nswitch backdrop to (bac v)\nwait (.1) seconds\nforever\n    play sound [Vexento - Empty v] until done\nend\n\n@Player\n\nwhen flag clicked\ngo to [back v] layer\nset volume to (100) %\nchange volume by (-85)\nshow\nclear graphic effects\ngo to x: (-200) y: (-30)\nforever\n    if <key (right arrow v) pressed?> then\n        change [pour aller de gauche à droite v] by (1)\n        switch costume to (costume1 v)\n    else\n        if <key (left arrow v) pressed?> then\n            change [pour aller de gauche à droite v] by (-1)\n            switch costume to (costume2 v)\n        end\n    end\n    set [pour aller de gauche à droite v] to ((Pour aller de gauche à droite) * (0.9))\n    change x by (Pour aller de gauche à droite)\n    if <touching color (#828282)?> then\n        change y by (1)\n        if <touching color (#828282)?> then\n            change y by (1)\n            if <touching color (#828282)?> then\n                change y by (1)\n                if <touching color (#828282)?> then\n                    change y by (1)\n                end\n                if <touching color (#828282)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching color (#808080)?> then\n        change x by ((Pour aller de gauche à droite) * (-1))\n        change y by (-5)\n        if <key (up arrow v) pressed?> then\n            if <(Pour aller de gauche à droite) > [0]> then\n                set [pour aller de gauche à droite v] to [-5]\n            else\n                set [pour aller de gauche à droite v] to [5]\n            end\n            set [pour aller de haut en bas v] to [10]\n        else\n            set [pour aller de haut en bas v] to [0]\n        end\n    end\n    change [pour aller de haut en bas v] by (-1)\n    change y by (Pour aller de haut en bas)\n    if <touching color (#828282)?> then\n        change y by ((Pour aller de haut en bas) * (-1))\n        set [pour aller de haut en bas v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#828282)?> then\n        if <key (up arrow v) pressed?> then\n            set [pour aller de haut en bas v] to [15]\n        end\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <(y position) < [-170]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0) seconds\n        end\n        go to x: (-200) y: (-30)\n        repeat (10)\n            change [ghost v] effect by (-10)\n            wait (0) seconds\n        end\n    end\n    if <(x position) > [240]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-200) y: (-30)\n    end\nend\n\n@intro\n\nwhen flag clicked\nhide\nplay sound [FR Xenogenesis v] until done\nbroadcast (end intro v)\n\nwhen flag clicked\npoint in direction (90)\nset [clones v] to [0]\nrepeat (4)\n    change [clones v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(clones) = [1]> then\n    switch costume to (whatever color v)\n    show\nend\n\nwhen I start as a clone\nif <(clones) = [2]> then\n    go to [front v] layer\n    go to x: (12) y: (26)\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (change me  v)\n    show\n    forever\n        repeat (10)\n            turn left (2) degrees\n        end\n        repeat (20)\n            turn right (2) degrees\n        end\n        repeat (10)\n            turn left (2) degrees\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clones) = [3]> then\n    switch costume to (spin thing v)\n    show\n    go to x: (12) y: (20)\n    forever\n        turn right (5) degrees\n    end\nend\n\nwhen I start as a clone\nif <(clones) = [4]> then\n    go to [front v] layer\n    switch costume to (username here v)\n    go to x: (0) y: (-135)\n    set size to (100) %\n    show\n    forever\n        change size by (10)\n        wait (.2) seconds\n        change size by (-10)\n        wait (.2) seconds\n    end\nend\n\nwhen I receive [end intro v]\ndelete this clone\n\n@Narrator\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (costum` v)\nset [ghost v] effect to (100)\n\nwhen I receive [end intro v]\nwait (.1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\n    wait (.1) seconds\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [1]> then\n        switch costume to (costum` v)\n    end\n    if <(backdrop [number v]) = [2]> then\n        switch costume to (costume1 v)\n    end\n    if <(backdrop [number v]) = [3]> then\n        switch costume to (costume2 v)\n    end\n    if <(backdrop [number v]) = [4]> then\n        switch costume to (costume3 v)\n    end\n    if <(backdrop [number v]) = [5]> then\n        switch costume to (costume4 v)\n    end\n    if <(backdrop [number v]) = [6]> then\n        switch costume to (costume5 v)\n    end\n    if <(backdrop [number v]) = [7]> then\n        switch costume to (costume5 v)\n    end\n    if <(backdrop [number v]) = [8]> then\n        switch costume to (costume6 v)\n        forever\n            if <touching (player v)?> then\n                hide\n                broadcast (A winner !! v)\n            end\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (147) y: (-44)\nforever\n    if <(backdrop [number v]) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    turn right (7) degrees\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (-24) y: (15)\nforever\n    if <(backdrop [number v]) = [7]> then\n        show\n        forever\n            if <(backdrop [number v]) = [7]> then\n                show\n                wait (1) seconds\n                hide\n                wait (2) seconds\n            else\n                hide\n            end\n        end\n    else\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (36) y: (28)\nforever\n    if <(backdrop [number v]) = [8]> then\n        show\n        forever\n            if <(backdrop [number v]) = [8]> then\n                show\n                next costume\n                wait (1) seconds\n            else\n                hide\n            end\n        end\n    else\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [a winner !! v]\nshow\nforever\n    next costume\n    wait (.4) seconds\nend\n\n@Sprite5\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\n