Black World - a platformer v3.0
@Stage\n\n@Heroe 98\n\nwhen I receive [go v]\nset size to (100) %\ngo to [front v] layer\ngo to x: (-180) y: (10)\nforever\n    if <key (right arrow v) pressed?> then\n        change [pour aller de gauche à droite v] by (1)\n    else\n        if <key (left arrow v) pressed?> then\n            change [pour aller de gauche à droite v] by (-1)\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 (#170000)?> then\n        change y by (1)\n        if <touching color (#170000)?> then\n            change y by (1)\n            if <touching color (#170000)?> then\n                change y by (1)\n                if <touching color (#170000)?> then\n                    change y by (1)\n                end\n                if <touching color (#170000)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching color (#170000)?> 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 (#170000)?> 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 (#170000)?> 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 <(x position) = [282]> then\n        broadcast (WIN v)\n        go to x: (-180) y: (10)\n    end\n    if <<touching color (#004a8e)?> or <touching color (#366188)?>> then\n        go to x: (-180) y: (10)\n    end\n    if <touching color (#694900)?> then\n        broadcast (Fortniute v)\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\nhide\nshow variable [deaths v]\n\nwhen I receive [message 1 v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\ngo to x: (-152) y: (-134)\n\nwhen flag clicked\nwait (6) seconds\nforever\n    start sound [Alan Walker - Faded \[mp3clan\] v]\n    wait (213) seconds\nend\n\nwhen I start as a clone\nset size to (100) %\nset [ghost v] effect to (0)\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\n@2\n\n@Intro\n\nwhen I receive [flash v]\nset [brightness v] effect to (-200)\nwait (0.3) seconds\nset [brightness v] effect to (0)\n\nwhen I receive [intro v]\npoint in direction (90)\ngo to [front v] layer\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [message 1 v]\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nbroadcast (intro v)\nshow\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (2 v)\npoint in direction (90)\nshow\ngo to x: (0) y: (0)\nset size to (5) %\nrepeat (45)\n    change size by (4)\nend\nrepeat (20)\n    change size by (-2)\nend\nwait (1) seconds\nrepeat (60)\n    turn right (27) degrees\n    change size by (2)\n    change [ghost v] effect by (2)\nend\nwait (0.3) seconds\nhide\nbroadcast (message 1 v)\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [message 1 v]\ngo to x: (0) y: (125)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        if <not <touching (mouse-pointer v)?>> then\n            set size to (100) %\n        end\n    end\nend\n\nwhen I receive [go v]\nhide\n\n@Sprite2\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\n\nwhen I receive [win v]\nnext costume\n\n@Sprite3\n\nwhen I receive [message 1 v]\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        if <not <touching (mouse-pointer v)?>> then\n            set size to (100) %\n        end\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nbroadcast (GO v)\nhide\n\nwhen flag clicked\nshow\n\n@Cloud_1\n\nwhen flag clicked\nhide\nwait (8) seconds\nforever\n    wait (pick random (3) to (10)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (254) y: (pick random (140) to (50))\nrepeat until <(x position) = [-270]>\n    go to [back v] layer\n    change x by (pick random (-3) to (-8))\nend\nhide\ndelete this clone\n\n@Sprite4\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [go v]\nforever\n    wait (0.01) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-220) to (260)) y: (170)\nrepeat until <<touching (_edge_ v)?> or <touching color (#170000)?>>\n    move (10) steps\nend\ndelete this clone\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [fortniute v]\nshow\ngo to x: (0) y: (0)\n\n
                       My first project is out !\n\nI have the honor to present to you my first project: Black a platformer.\n15 levels.\n\nInstructions :\n\n-directionnal keys to move\n-don't touch blue\n\nand Win ! x)\n\n#tutorial #turoriel #tutoriels #tutorials #tutos #tuto