World A Platformer (Mobile Friendly) #Games#All

Instructions: World A Platformer (Mobile Friendly)  \n\n⬇ Credits at the bottom ⬇\n\nPlease ❤️⭐️ & Follow me for more ☻  \n \n_Instructions_\n\nUse ⬆⬅➡ & don't touch the spikes,\n12 levels 100 % Possible \nHave Fun !\n-----Notes-----\nLast update : 07/04/2021\n\n------Tags------ \n#clemJ72 #Games #All #Cool #platformer #FR #world #me #you\n\n---Other---\nmusic by @Elektronomia (United)\n \n*Credits*\nSun animation by me\n@Elektronomia\n@You for watching\n@megamath1221 for the Desert Temple\n@TNTend\n@StratfordJames for the background

@Stage\n\nwhen flag clicked\nswitch backdrop to (c2 v)\nforever\n    if <(level) = [4]> then\n        switch backdrop to (c1 v)\n    end\n    if <(level) = [7]> then\n        switch backdrop to (c3 v)\n    end\n    if <(level) = [9]> then\n        switch backdrop to (grunge v)\n    end\n    if <(level) = [12]> then\n        switch backdrop to (c2 v)\n    end\nend\n\nwhen I receive [matin v]\nset [brightness v] effect to (-75)\nrepeat (250)\n    change [brightness v] effect by (0.3)\n    wait () seconds\nend\n\nwhen I receive [midi v]\nwait (5) seconds\nrepeat (200)\n    change [brightness v] effect by (-0.2)\nend\n\nwait () seconds\n\nwhen I receive [night v]\nrepeat (200)\n    change [brightness v] effect by (-0.1)\nend\n\n@Platform guy\n\nwhen flag clicked\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-104)\nforever\n    change [y v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.75)\n        switch costume to (costume1 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-0.75)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            xcoll\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                set [y v] to [13]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-7]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        ycoll\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [14.5]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (levels v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [237]> then\n        broadcast (message1 v)\n        go to x: (-223) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (spikes v)?> or <touching (sprite1 v)?>> then\n        go to x: (-223) y: (-100)\n        play sound [Death v] until done\n    end\nend\n\nwhen flag clicked\nset volume to (75) %\nswitch costume to (costume1 v)\nforever\n    play sound [Elektronomia_-_United\[BestVideoConverter v] until done\nend\n\nwhen I receive [someone pressed s key v]\nchange [level v] by (1)\n\nwhen I receive [message1 v]\nchange [level v] by (1)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [someone pressed skip button v]\ngo to x: (-218) y: (-106)\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        if <(x position) > [237]> then\n            broadcast (message1 v)\n            go to x: (-223) y: (100)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        change y by (9)\n    end\nend\n\nwait (1) seconds\nchange y by (-1)\n\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n\nswitch costume to (1 v)\nchange [x v] by (0.75)\n\nwhen flag clicked\nforever\n    wait (pick random (1) to (3)) seconds\nend\n\n@spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [someone pressed s key v]\nnext costume\n\nwhen I receive [someone pressed skip button v]\nnext costume\n\nwhen flag clicked\nforever\n    go to x: (36) y: (27)\nend\n\n@levels\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\ngo to x: (20) y: (26)\nhide variable [level v]\nswitch costume to (1 v)\n\nwhen I receive [someone pressed s key v]\nnext costume\n\nwhen I receive [someone pressed skip button v]\nnext costume\n\nwhen flag clicked\nrepeat until <(level) = [17]>\n    if <(level) = [17]> then\n        set [level v] to [1]\n        reset timer\n    end\nend\n\n@thumnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\nturn right (90) degrees\n\ngo to (random position v)\n\ngo to x: (36) y: (28)\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (40) y: (-40)\nshow\n\nforever\n    if <(level) = [11]> then\nend\n\nhide\n\n@clouds\n\nwhen flag clicked\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (50))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (-180) to (180))\n        repeat until <(x position) > [239]>\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (-180) to (180))\n        repeat until <(x position) < [-239]>\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(level) = [7]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nforever\n\nhide\n\nshow\n\nwhen I receive [sand v]\nhide\nstop [other scripts in sprite v]\n\n@sun\n\nwhen flag clicked\nshow\nbroadcast (Matin v)\ngo to x: (-234) y: (-164)\ngo to [back v] layer\nglide (60) secs to x: (-5) y: (135)\nbroadcast (Midi v)\n\ngo to x: (-5) y: (135)\n\nwhen I receive [midi v]\nwait (5) seconds\nglide (60) secs to x: (234) y: (-164)\nhide\nbroadcast (Night v)\n\nforever\n\nwhen I receive [night v]\nhide\n\nwhen I receive [5h v]\nshow\nbroadcast (Matin v)\ngo to x: (-234) y: (-164)\ngo to [back v] layer\nglide (60) secs to x: (-5) y: (135)\nbroadcast (Midi v)\n\nwhen flag clicked\ngo [backward v] (2) layers\nswitch costume to (costume1 v)\nforever\n    if <(level) = [4]> then\n        go [backward v] (2) layers\n        switch costume to (costume2 v)\n        broadcast (Sand v)\n    end\n    if <(level) = [7]> then\n        go [backward v] (2) layers\n        switch costume to (costume3 v)\n        broadcast (lava v)\n    end\n    if <(level) = [9]> then\n        hide\n        go [backward v] (2) layers\n        switch costume to (costume1 v)\n    end\n    if <(level) = [12]> then\n        show\n        go [backward v] (2) layers\n        switch costume to (costume1 v)\n    end\nend\n\nhide\n\n@moon\n\nwhen flag clicked\nhide\n\nwhen I receive [night v]\nshow\nwait (60) seconds\nhide\nbroadcast (5h v)\n\n@Fog\n\nwhen flag clicked\nhide\n\nwhen I receive [sand v]\ngo [forward v] (1) layers\nshow\nforever\n    set [ghost v] effect to (60)\n    go to x: (30) y: (0)\n    glide (7) secs to x: (-500) y: (0)\nend\n\nwhen I receive [lava v]\nhide\nstop [other scripts in sprite v]\n\n@Sand\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\npoint in direction (pick random (0) to (360))\nshow\ngo [backward v] (1000) layers\ngo to x: (236) y: (pick random (-172) to (172))\nglide (pick random (0.5) to (1)) secs to x: (-236) y: (pick random (-172) to (172))\ndelete this clone\n\nwhen I receive [sand v]\nswitch costume to (costume1 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [lava v]\nswitch costume to (mort v)\n\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@Sprite2\n\n@Sprite3\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (5) layers\nset [ghost v] effect to (30)\n\n