꧁༺ A PLATFORMER ༻꧂

Instructions:                             ꧁༺HELLO༻꧂\n\n(Français)   ( English⏬)\n\nSalut les gars, aujourd'hui j'ai fait mon premier platformer.✌️\nJe fais cela pour mes 100 followers✨ \nJ'espère que cela va vous plaire car j'ai mis 7 heures à le faire !! ✅\nAmuse-toi bien sur mon platformer !!\n❤️et⭐pour un épisode 2 \n      ⏩⏩⏩⏩⏩⚔️SUIS-MOI⚔️⏪⏪⏪⏪⏪\n\n           \n                           ꧁༺HELLO༻꧂\n\n(English)\nHi guys, today I made my first platformer.✌️\nI'm doing this for my 100 followers✨ \nHope you'll like it because I spent 7 hours to do it!!! ✅\nHave fun on my platformer!!!\n❤️and⭐for episode 2 \n    ⏩⏩⏩⏩⏩⚔️FOLLOW-ME⚔️⏪⏪⏪⏪⏪

@Stage\n\n@Thumbnail\n\nwhen flag clicked\nbroadcast (Intro v)\nwait (2.2) seconds\nbroadcast (Finish Intro v)\n\nwhen flag clicked\nwait (0.001) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\n\n@Player\n\ndefine Vertical movement\nchange y by (Y Speed)\nVertical Colition\nGravity\n\ndefine Vertical Colition\nif <touching (level v)?> then\n    if <[0] > (Y Speed)> then\n        repeat until <not <touching (level v)?>>\n            change y by (1)\n        end\n    end\n    set [above the platform? v] to [Yes]\n    if <(Y Speed) > [0]> then\n        repeat until <not <touching (level v)?>>\n            change y by (-1)\n        end\n    end\n    set [y speed v] to [0]\nend\n\ndefine Gravity\nchange [y speed v] by (-1)\n\nwhen I receive [finish intro v]\nset x to (-196)\nset y to (10)\nshow\nrepeat (4)\n    change [ghost v] effect by (-25)\nend\nforever\n    Horizontal Movement\n    Vertical movement\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\nset [ghost v] effect to (100)\n\ndefine Horizontal Movement\nchange x by (X Speed)\nHorizontal Collision\nFriction\n\ndefine Friction\nset [x speed v] to ((X Speed) * (0.8))\n\ndefine Horizontal Collision\nif <touching (level v)?> then\n    repeat (3)\n        change y by (1)\n        if <not <touching (level v)?>> then\n            stop [this script v]\n        end\n    end\n    change y by (-3)\n    if <[0] > (X Speed)> then\n        repeat until <not <touching (level v)?>>\n            change x by (1)\n        end\n    end\n    if <(X Speed) > [0]> then\n        repeat until <not <touching (level v)?>>\n            change x by (-1)\n        end\n    end\n    set [x speed v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <<<key (space v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> and <(Above the platform?) = [Yes]>> then\n        change [y speed v] by (13)\n        set [above the platform? v] to [No]\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x speed v] by (2)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [x speed v] by (-2)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-196) y: (10)\n\nwhen I receive [death v]\ngo to x: (-196) y: (10)\n\nwhen I receive [death v]\nplay sound [Punch Sound Effect v] until done\n\nwhen I receive [finish intro v]\nset [levels v] to [1]\n\nwhen I receive [play v]\nforever\n    if <not <(LEVELS) = [10]>> then\n        if <(x position) > [235]> then\n            broadcast (Next Level v)\n            start sound [Ding Sound Effect v]\n            change [levels v] by (1)\n            set [x speed v] to [0]\n            set [y speed v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    play sound [Be Motived @Scratcheurscratch v] until done\nend\n\n@Level\n\nwhen I receive [finish intro v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spike\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I start as a clone\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (Death v)\n    end\nend\n\ndefine Create Spike with X: (x) Y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [finish intro v]\nCreate Spike with X: [-105] Y: [-76]\nCreate Spike with X: [84] Y: [-76]\n\nwhen I receive [next level v]\nif <(LEVELS) = [2]> then\n    Create Spike with X: [77] Y: [-76]\n    Create Spike with X: [-43] Y: [-76]\nend\nif <(LEVELS) = [4]> then\n    Create Spike with X: [-125] Y: [-76]\n    Create Spike with X: [-86] Y: [-76]\n    Create Spike with X: [40] Y: [-76]\n    Create Spike with X: [80] Y: [-76]\nend\nif <(LEVELS) = [5]> then\n    Create Spike with X: [72] Y: [-76]\n    Create Spike with X: [110] Y: [-76]\n    Create Spike with X: [-20] Y: [95]\nend\nif <(LEVELS) = [6]> then\n    Create Spike with X: [-20] Y: [95]\n    Create Spike with X: [184] Y: [-76]\nend\nif <(LEVELS) = [8]> then\n    Create Spike with X: [10] Y: [-76]\nend\nif <(LEVELS) = [9]> then\n    Create Spike with X: [-137] Y: [-76]\n    Create Spike with X: [-102] Y: [-76]\n    Create Spike with X: [-65] Y: [-76]\n    Create Spike with X: [65] Y: [-76]\n    Create Spike with X: [102] Y: [-76]\n    Create Spike with X: [137] Y: [-76]\nend\n\nwhen I receive [next level v]\ndelete this clone\n\n@Lava\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I start as a clone\nshow\nforever\n    change [move v] by (5)\n    change y by ([sin v] of (Move) )\nend\n\ndefine Create Lava with X: (x) Y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif <(LEVELS) = [3]> then\n    Create Lava with X: [82] Y: [-213]\nend\nif <(LEVELS) = [6]> then\n    Create Lava with X: [82] Y: [-213]\nend\nif <(LEVELS) = [7]> then\n    Create Lava with X: [82] Y: [-214]\nend\nif <(LEVELS) = [8]> then\n    Create Lava with X: [0] Y: [-213]\nend\n\nwhen I receive [next level v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (Death v)\n    end\nend\n\n@Walk particles\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\nforever\n    if <(Y Speed) < [0]> then\n        wait until <(Y Speed) = [-1]>\n        repeat until <(Y Speed) > [0]>\n            repeat (2)\n                move (0) steps\n            end\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (0)\nset size to (pick random (130) to (150)) %\nshow\npoint in direction (pick random (-360) to (360))\ngo to (player v)\nchange x by (X Speed)\nchange y by (-15)\nwait (0.075) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@INTRO, DEATH, NEXT LEVEL\n\nwhen I receive [death v]\ngo to x: (0) y: (0)\nswitch costume to (death v)\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (7)\n    change [ghost v] effect by (-14)\nend\nwait (0.1) seconds\nrepeat (7)\n    change [ghost v] effect by (14)\nend\nset [ghost v] effect to (0)\nhide\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [next level v]\ngo to x: (0) y: (0)\nswitch costume to (next v)\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (7)\n    change [ghost v] effect by (-14)\nend\nwait (0.1) seconds\nrepeat (7)\n    change [ghost v] effect by (14)\nend\nset [ghost v] effect to (0)\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (death v)\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nwait (0.47) seconds\nplay sound [Connect v] until done\nwait (0.47) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\nhide\nbroadcast (Play v)\n\n@Decoration\n\nwhen flag clicked\nhide\n\nwhen I receive [finish intro v]\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [play v]\nforever\n    go to x: (-12) y: (-90)\n    if <(LEVELS) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(LEVELS) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(LEVELS) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(LEVELS) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(LEVELS) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(LEVELS) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(LEVELS) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(LEVELS) = [9]> then\n        switch costume to (level 9 v)\n    end\nend\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(Love) = [1]> and <(Fave) = [1]>>> then\n        wait (pick random (15) to (30)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (4) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [message1 v]\nwait (5) seconds\nstop [other scripts in sprite v]\n\n@detector\n\nwhen flag clicked\nhide\nset [favorite v] to [0]\nset [love v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(Love) = [1]> and <(Favorite) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (message v)\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [love 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 [love 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 [favorite v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [favorite v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n