Nature Scrolling-Platformer Mobile Friendly
@Stage\n\nwhen I receive [play game v]\nswitch backdrop to (arrière plan1 v)\nforever\n    play sound [Draco + Hermione \(Dramione\) __ Demons v] until done\nend\n\n@Player\n\nwhen I receive [green flag v]\nchange [brightness v] effect by (25)\nswitch costume to (2 v)\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(Exit) > [50]>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    Game Die\n    set [ghost v] effect to (0)\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <<(mouse x) < [-30]> and <mouse down?>>> then\n    Change Player x by [-8]\n    switch costume to (1 v)\nend\nif <<key (right arrow v) pressed?> or <<[30] < (mouse x)> and <mouse down?>>> then\n    Change Player x by [8]\n    switch costume to (2 v)\nend\nif <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <<[10] < (mouse y)> and <mouse down?>>> then\n    if <(In air) < [4]> then\n        change [sy v] by (6.5)\n    end\nend\nchange [sy v] by (-2)\nChange Player y by (sy)\nset [scroll x v] to (x)\nPosition\nif <(y) < [-195]> then\n    switch costume to (2 v)\n    set [exit v] to [die]\n    play sound [nope v] until done\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nTest - Die\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (Scroll x)) y: ((y) - (Scroll y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nTest - Die\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game Die\nset [exit v] to []\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\ndefine Test - Die\nif <touching color (#ff0000)?> then\n    set [exit v] to [die]\n    start sound [nope v]\nend\nif <touching color (#005fff)?> then\n    change [sy v] by (13)\nend\n\nwhen flag clicked\nhide\n\n@Platforms\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [tick v]\nposition ((x) - (Scroll x)) ((y) - (Scroll y))\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (0 1 v)\ncreate clone of (_myself_ v)\nchange [x v] by (600)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (565)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (550)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (575)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (505)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (400)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (500)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\ndelete this clone\n\n@Thumbai\n\nshow\n\nwhen flag clicked\nhide\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\nforever\n    create clone of (_myself_ v)\n    wait until <<(LOVED__) = [1]> or <(FAVED___) = [1]>>\n    wait (1) seconds\n    show\n    go to x: (0) y: (50)\n    reset timer\n    switch costume to (pick random (1) to (4))\n    set [ghost v] effect to (100)\n    repeat until <(timer) > [3.5]>\n        change y by ((y position) / (-15))\n        change [ghost v] effect by (-3)\n    end\n    reset timer\n    repeat until <(timer) > [3.5]>\n        change y by (((y position) - (-100)) / (-15))\n        change [ghost v] effect by (10)\n    end\n    wait until <not <<(LOVED__) = [1]> or <(FAVED___) = [1]>>>\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Nuage\n\nwhen I start as a clone\nshow\nif <(pick random (1) to (2)) = [1]> then\n    go to x: (-250) y: (pick random (50) to (200))\n    set [ghost v] effect to (pick random (60) to (90))\n    switch costume to (pick random (1) to (3))\n    repeat until <(x position) = [250]>\n        change x by (1)\n    end\n    delete this clone\nelse\n    go to x: (250) y: (pick random (50) to (200))\n    set [ghost v] effect to (pick random (60) to (90))\n    switch costume to (pick random (1) to (3))\n    repeat until <(x position) = [-250]>\n        change x by (-1)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <(intro) = [fini]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [play game v]\ngo to [back v] layer\nhide\nwait (1.5) seconds\nforever\n    create clone of (_myself_ v)\n    wait (1.5) seconds\nend\n\n@Intro\n\nwhen flag clicked\nhide\nset [\[it intro\] keyframe v] to [1]\nCreate clones\nplay sound [PROD v] until done\nchange [\[it intro\] keyframe v] by (1)\nGradient Shockwave\nstart sound [Kick Blam v]\nstart sound [DROP v]\nwait (3) seconds\nchange [\[it intro\] keyframe v] by (1)\nbroadcast (\[Slides\] Show slides v)\n\ndefine Create clones\nset [cloneid v] to [1]\nrepeat (2)\n    create clone of (_myself_ v)\n    change [cloneid v] by (1)\nend\nset [cloneid v] to [CL]\nrepeat (10)\n    create clone of (_myself_ v)\nend\nset [cloneid v] to [0]\n\ndefine Frame Tween Position  x: (x) y: (y) speed: (spd)\nchange x by (((round (x)) - (round (x position))) / (spd))\nchange y by (((round (y)) - (round (y position))) / (spd))\n\ndefine Frame Tween Size: (s) speed: (spd)\nchange size by (((round (s)) - (round (size))) / (spd))\n\ndefine Frame Tween Animation   x: (x) y: (y) size: (s) rotate: (r) speed: (spd)\nFrame Tween Position  x: (x) y: (y) speed: (spd)\nFrame Tween Size: (s) speed: (spd)\nFrame tween rotation: (r) speed: (spd)\n\nwhen I start as a clone\nif <(CloneID) = [1]> then\n    go to [front v] layer\n    switch costume to (background v)\n    Frame Tween Animation   x: [0] y: [0] size: [100] rotate: [90] speed: [1]\n    show\n    repeat until <[1] < (\[IT INTRO\] Keyframe)>\n        change [brightness v] effect by (1)\n    end\n    set [brightness v] effect to (100)\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\n    clear graphic effects\n    wait until <[2] < (\[IT INTRO\] Keyframe)>\n    repeat (25)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\ndefine Frame tween rotation: (r) speed: (spd)\nturn right (((round (r)) - (round (direction))) / (spd)) degrees\n\nwhen I start as a clone\nif <(CloneID) = [2]> then\n    go to [front v] layer\n    switch costume to (light v)\n    Frame Tween Animation   x: [0] y: [0] size: [0] rotate: [90] speed: [1]\n    show\n    set [var2 v] to [0]\n    repeat until <[1] < (\[IT INTRO\] Keyframe)>\n        change [var2 v] by (0.4)\n        change size by (Var2)\n    end\n    switch costume to (name v)\n    Frame Tween Animation   x: [0] y: [0] size: [100] rotate: [90] speed: [1]\n    wait until <[2] < (\[IT INTRO\] Keyframe)>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [2]> then\n    set [val1 v] to [25]\n    set [color v] to [0]\n    wait until <[1] < (\[IT INTRO\] Keyframe)>\n    repeat until <[2] < (\[IT INTRO\] Keyframe)>\n        Frame Tween Animation   x: [0] y: [0] size: [75] rotate: [90] speed: [15]\n        Frame Tween Position  x: (pick random ((Val1) * (-1)) to (Val1)) y: (pick random ((Val1) * (-1)) to (Val1)) speed: [1]\n        change [val1 v] by (((round (0)) - (round (Val1))) / (10))\n        change [color v] by (((round (400)) - (round (Color))) / (15))\n        set [color v] effect to (Color)\n    end\n    set [color v] effect to (0)\n    broadcast (Play Game v)\nend\n\ndefine Gradient Shockwave\nset [cloneid v] to [GS]\ncreate clone of (_myself_ v)\nset [cloneid v] to [0]\n\nwhen I start as a clone\nif <(CloneID) = [GS]> then\n    go to [front v] layer\n    switch costume to (gradientshockwave v)\n    Frame Tween Animation   x: [0] y: [0] size: [0] rotate: [90] speed: [1]\n    show\n    repeat (25)\n        Frame Tween Size: [400] speed: [5]\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CloneID) = [CL]> then\n    go to [front v] layer\n    switch costume to (concentrated line v)\n    set [ghost v] effect to (100)\n    show\n    Frame Tween Animation   x: [0] y: [0] size: [0] rotate: [90] speed: [1]\n    wait (0.2) seconds\n    repeat until <[1] < (\[IT INTRO\] Keyframe)>\n        Frame Tween Animation   x: [0] y: [0] size: (pick random (100) to (125)) rotate: (pick random (-180) to (180)) speed: [1]\n        change [ghost v] effect by (pick random (-1) to (-5))\n    end\n    delete this clone\nend\n\n
______________________EN/FR_____________________\n\n          arrows to move / flèches pour se déplacer \n\nNO ADS, PLEASE / PAS DE BUB