Totoro Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (blanc v)\nwait (3.5) seconds\nswitch backdrop to (forêt v)\n\nwhen I receive [fin v]\nswitch backdrop to (forêt v)\n\n@Totoro\n\nwhen I receive [start v]\nswitch costume to (droite v)\nset size to (30) %\nhide\nwait (0) seconds\ngo to x: (-200) y: (-58)\nset [x v] to [0]\nset [y v] to [0]\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (droite v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        switch costume to (gauche v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#00d11a)?> then\n        change y by (1)\n        if <touching color (#00d11a)?> then\n            change y by (1)\n            if <touching color (#00d11a)?> then\n                change y by (1)\n                if <touching color (#00d11a)?> then\n                    change y by (1)\n                    if <touching color (#00d11a)?> then\n                        change y by (1)\n                        if <touching color (#00d11a)?> then\n                            change x by ((x) * (-1))\n                            set [x v] to [0]\n                            if <not <touching color (#00d11a)?>> then\n                                change y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching color (#00d11a)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#00d11a)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (-58)\n    end\nend\n\nwhen flag clicked\nset size to (30) %\nhide\nforever\n    if <touching (1>2 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv2 v)\n    end\n    if <touching (2>3 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv3 v)\n    end\n    if <touching (3>4 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv 4 v)\n    end\n    if <touching (4>5 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv5 v)\n    end\n    if <touching (5>6 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv6 v)\n    end\n    if <touching (6>7 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv7 v)\n    end\n    if <touching (7>8 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv8 v)\n    end\n    if <touching (8>9 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv9 v)\n    end\n    if <touching (9>10 v)?> then\n        go to x: (-130) y: (22)\n        broadcast (niv10 v)\n    end\n    if <touching (10>fin v)?> then\n        go to x: (-130) y: (22)\n        broadcast (fin v)\n    end\n    if <(x position) = [252]> then\n        go to x: (-200) y: (-58)\n        broadcast (niv suivant v)\n    end\n    if <(x position) = [-270]> then\n        go to x: (-200) y: (-58)\n    end\n    if <([costume # v] of [niveaux v]) = [10]> then\n        wait (2) seconds\n        broadcast (fin v)\n        hide\n    end\nend\n\nwhen [1 v] key pressed\nset [taille v] to [10]\n\nwhen [2 v] key pressed\nset [taille v] to [30]\n\nwhen [3 v] key pressed\nset [taille v] to [40]\n\nwhen flag clicked\nhide variable [taille v]\n\nset size to (Taille) %\n\n@DJ-CALCIFER\n\nwhen flag clicked\nforever\n    play sound [Ghibli music v] until done\nend\n\n@yoshi\n\nwhen flag clicked\ngo to [back v] layer\nset size to (10) %\ngo to x: (0) y: (0)\nrepeat (10)\n    change size by (10)\nend\nchange size by (-5)\nwait (0.1) seconds\nchange size by (5)\nwait (0.5) seconds\nrepeat (10)\n    change x by (-15)\nend\nwait (1.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@presents...\n\nwhen flag clicked\ngo to x: (58) y: (-34)\nset size to (50) %\nhide\nwait (1.5) seconds\nshow\nrepeat (10)\n    change size by (10)\nend\nchange size by (-5)\nwait (0.1) seconds\nchange size by (5)\nwait (0.8) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@@gabrielpierrot\n\nwhen flag clicked\nset size to (10) %\ngo to x: (0) y: (0)\nhide\nwait (1) seconds\nshow\nrepeat (10)\n    change size by (10)\nend\nchange size by (-5)\nwait (0.1) seconds\nchange size by (5)\nwait (1.3) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nwait (0.2) seconds\n\n@sol -herbe-\n\nwhen flag clicked\nhide\nwait (3.5) seconds\nshow\n\n@sol -terre-\n\nwhen flag clicked\nhide\nwait (3.5) seconds\nshow\n\nwhen flag clicked\ngo to x: (-16) y: (6)\nswitch costume to (costume1 v)\n\n@titre : Totoro Platformer\n\nwhen flag clicked\nchange [ghost v] effect by (200)\ngo to [back v] layer\nhide\nwait (3.5) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [start v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Bouton Start\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (-147)\nhide\nwait (3.5) seconds\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Start v)\nhide\n\n@Totoro Gauche\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nwait (3.5) seconds\nshow\n\nwhen I receive [start v]\nhide\n\nwhen [t v] key pressed\nswitch costume to (2 v)\nwait (0.3) seconds\nswitch costume to (1 v)\n\n@titre pour miniature\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@Totoro pour miniature\n\nshow\nset size to (38) %\ngo to x: (-120) y: (-107)\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@fond blanc pour miniature\n\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@Totoro pour miniature 2\n\nshow\nset size to (38) %\ngo to x: (144) y: (-106)\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@Totoro Droite\n\nwhen flag clicked\nhide\nwait (3.5) seconds\nshow\n\nwhen I receive [start v]\nhide\n\n@Chu... TOTORO !\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\n\nwhen I receive [niv suivant v]\nhide\n\n@Chu... TOTORO ! number two\n\nwhen I receive [start v]\ngo to [front v] layer\nforever\n    if <key (space v) pressed?> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [bloc-de-texte disparait v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [niv suivant v]\nforever\n    hide\nend\n\n@!! CASE DE TEXTE !!\n\nwhen I receive [start v]\nforever\n    if <key (space v) pressed?> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [bloc-de-texte disparait v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [niv suivant v]\nforever\n    hide\nend\n\n@boite-de-texte\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [36]> and <key (space v) pressed?>> then\n        repeat (28)\n            next costume\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <<(costume [number v]) = [1]> and <key (space v) pressed?>> then\n        repeat (35)\n            next costume\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [64]> and <key (space v) pressed?>> then\n        broadcast (bloc-de-texte disparait v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [start v]\nforever\n    if <key (space v) pressed?> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen I receive [niv suivant v]\nforever\n    hide\nend\n\n@niveaux\n\nwhen I receive [niv suivant v]\nnext costume\n\nwhen flag clicked\nhide\nswitch costume to (niv 0 v)\n\nwhen I receive [start v]\nshow\nswitch costume to (niv 0 v)\n\n@Chibi...TOTORO !\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <([costume # v] of [niveaux v]) = [10]> then\n        show\n        say [Salut ! Tu es enfin arrivé !] for (2) seconds\n        forever\n    else\n        hide\n    end\nend\n\nwhen I receive [fin v]\nhide\n\n@complément de niveau\n\nwhen I receive [niv suivant v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (niv 0 v)\n\n@instructions\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start v]\nshow\nwait (3) seconds\nhide\n\n@gif 3 totoro\n\nwhen I receive [fin v]\nshow\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to [front v] layer\nhide\n\n@thx 4 playing\n\nwhen I receive [fin v]\nshow\n\nwhen flag clicked\nhide\n\n
◙ project & description in French ◙\n\nVoici mon nouveau jeu : Totoro Platformer, Incarnez Totoro et traversez tout les niveaux tout en rencontrant d'autres personnages du film, comme "Chu-Totoro" ou "Chibi-Totoro". J'ai passé beaucoup de temps à programmer ce jeu alors j'espère qu'il vous plaira ! Sur ce, bon jeu !\nNote : TOUT LES NIVEAUX SONT REALISABLES