||diary|| a platformer |0,2| reshared

Instructions: ||diary|| a platformer by @-mrme-       reshared\n---------------------------------------------------------------------------\nWARNING the lava level may be broken WARNING\n----------------------------------------------------------------------------\nnote: this is not supposed to be a hard platformer just a creative one :)\n\nnote: if you add this to 15 studios and then comment ''fan club'' you will be invited to my fan club :D (but don't be one of those people who just comment ''fan club'' without adding this project to 15 studios)\n----------------------------------------------------------------------------\nuse arrow keys or WASD to move\n----------------------------------------------------------------------------\nfront page on music :O\n----------------------------------------------------------------------------\n200 loves for part 2 \n----------------------------------------------------------------------------\nawesome scratch in scratch load and save projects!!\nhttps://scratch.mit.edu/projects/809944289/\n----------------------------------------------------------------------------\n                                  update log\n0,0 shared project\n0,1 added a timer for speedrunners\n0,2 added a skip button

@Stage\n\nwhen flag clicked\nforever\n    play sound [33 - Ditty v] until done\nend\n\n@thumbnail\n\nwhen flag clicked\nhide\n\n@levels\n\nwhen flag clicked\ngo to x: (30) y: (28)\ngo to [front v] layer\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [glisser v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [vraiment remonter v]\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [perdu v]\nif <(y position) = [128]> then\n    if <(costume [name v]) = [level 5]> then\n        show\n    else\n        broadcast (remonter quand perdu v)\n        glide (1) secs to x: (30) y: (28)\n    end\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (30) y: (28)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [next level v]\nif <touching (line v)?> then\n    next costume\nend\n\nif <<(level) = [3]> or <<(level) = [8]> or <(level) = [10]>>> then\n    glide (1) secs to x: (30) y: (28)\nend\nif <(level) = [5]> then\n    show\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (show spike v)\n    else\n        if <(costume [number v]) = [8]> then\n            broadcast (show spike l8 v)\n        else\n            broadcast (hide spike v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (show lava v)\n    else\n        broadcast (hide lava v)\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen flag clicked\nshow variable [time v]\n\nwhen I receive [skip v]\nnext costume\nbroadcast (player back v)\n\n@player\n\nwhen flag clicked\nforever\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        change y by (-1)\n        if <<touching (levels v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n            set [y v] to [12]\n            change y by (12)\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <<touching (levels v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nset size to (30) %\ngo to [back v] layer\nset [x v] to [0]\ngo to x: (-190) y: (-30)\nswitch costume to (droite v)\nshow\nforever\n    if <<touching (levels v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n        change y by (1)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (droite v)\n        set [x v] to [8]\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        set [x v] to [-8]\n        switch costume to (gauche v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (levels v)?> or <<touching (truc v)?> or <<touching (feuilles v)?> or <touching (poteau v)?>>>> then\n        change x by ((x) * (-1))\n        set [x v] to [0]\n    end\nend\n\nwhen I receive [next level v]\nif <(level) = [5]> then\n    go to x: (-190) y: (70)\nelse\n    go to x: (-190) y: (-30)\nend\n\nwhen I receive [perdu v]\nif <(level) = [5]> then\n    go to x: (-190) y: (70)\n    broadcast (hého v)\nelse\n    go to x: (-190) y: (-30)\nend\n\nwhen I receive [perdu \(eau\) v]\ngo to x: (-190) y: (-30)\n\nwhen I receive [glisser v]\nif <(level) = [3]> then\n    glide (0.1) secs to x: (-30) y: (-30)\n    glide (1) secs to x: (-30) y: (-122)\nend\nif <(level) = [5]> then\n    if <(x position) > [-100]> then\n        go to x: (153) y: (70)\n        glide (1) secs to x: (153) y: (-128)\n    end\n    if <not <(x position) > [-100]>> then\n        go to x: (-190) y: (-30)\n        glide (1) secs to x: (-190) y: (70)\n    end\nend\nif <(level) = [8]> then\n    go to x: (120) y: (-34)\n    glide (1) secs to x: (120) y: (-131)\nend\nif <(level) = [10]> then\n    go to x: (-103) y: (-34)\n    glide (1) secs to x: (-103) y: (-79)\nend\n\nwhen I receive [remonter v]\nbroadcast (vraiment remonter v)\nif <(level) = [3]> then\n    go to x: (-30) y: (-122)\n    glide (1) secs to x: (-30) y: (-30)\nend\nif <(level) = [5]> then\n    go to x: (153) y: (-128)\n    glide (1) secs to x: (153) y: (70)\nend\nif <(level) = [8]> then\n    go to x: (120) y: (-131)\n    glide (1) secs to x: (120) y: (-34)\nend\nif <(level) = [10]> then\n    go to x: (-103) y: (-79)\n    glide (1) secs to x: (-103) y: (-34)\nend\n\nwhen I receive [remonter quand perdu v]\ngo to x: (-190) y: (70)\nglide (1) secs to x: (-190) y: (-30)\n\nwhen I receive [bouton appuyé v]\nif <(level) = [8]> then\n    if <(y position) = [-133]> then\n        broadcast (bouton appuyé 2 v)\n    end\n    if <(y position) = [-32]> then\n        broadcast (bouton appuyé 1 v)\n    end\nend\n\nwhen I receive [glisser 2 v]\ngo to x: (102) y: (-34)\nglide (1) secs to x: (102) y: (-79)\n\nwhen I receive [remonter 2 v]\ngo to x: (102) y: (-79)\nglide (1) secs to x: (102) y: (-34)\n\nwhen I start as a clone\nswitch costume to (ombre v)\nrepeat (50)\n    change size by (-2.5)\n    switch costume to (ombre v)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\nwhen flag clicked\nwait until <(level) = [11]>\nforever\n    if <(y position) > [110]> then\n        go to x: (140) y: (-30)\n    end\nend\n\nwhen I receive [poteau v]\nforever\n    if <<(x position) < [-120]> and <(y position) = [-78]>> then\n        go to x: (-110) y: (-79)\n    end\nend\n\nwhen I receive [flèche droite v]\nif <<touching (levels v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n    change y by (1)\nend\nset [x v] to [4]\nswitch costume to (droite v)\nset [x v] to ((x) * (0.9))\nchange x by (x)\n\nif <<touching (levels v)?> or <<touching (truc v)?> or <<touching (feuilles v)?> or <touching (poteau v)?>>>> then\n    change x by ((x) * (-1))\n    set [x v] to [0]\nend\n\nwhen I receive [vérifier v]\nif <(level) = [10]> then\n    if <(x position) < [0]> then\n        broadcast (bouton appuyé 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#2600ff)?> then\n        go to x: (-190) y: (-7)\n    end\nend\n\nwhen I receive [start over v]\ngo to x: (-184) y: (-151)\n\nwhen I receive [player back v]\ngo to x: (-215) y: (-150)\n\nwhen I receive [player back v]\ngo to x: (-161) y: (-151)\n\n@line\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (33) y: (9)\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (next level v)\n    end\nend\n\n@restart\n\nwhen this sprite clicked\nbroadcast (start over v)\n\nwhen flag clicked\nshow\n\n@spike\n\nwhen flag clicked\nhide\n\nwhen I receive [hide spike v]\nhide\n\nwhen I receive [show spike v]\nswitch costume to (costume1 v)\nforever\n    go to x: (30) y: (28)\n    show\n    if <touching (player v)?> then\n        broadcast (player back v)\n    end\nend\n\nwhen I receive [show spike l8 v]\nforever\n    show\n    switch costume to (costume2 v)\n    if <touching (player v)?> then\n        broadcast (player back v)\n    end\nend\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen I receive [hide lava v]\ngo to x: (-999) y: (-999)\nhide\n\nwhen I receive [show lava v]\nswitch costume to (costume1 v)\nforever\n    go to x: (30) y: (28)\n    show\n    if <touching (player v)?> then\n        broadcast (player back v)\n    end\nend\n\n@skip\n\nwhen this sprite clicked\nbroadcast (skip v)\n\nwhen flag clicked\nshow\n\n