Geometry Dash  // A platformer #Games // 
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [19]> then\n        switch backdrop to (backdrop4 v)\n    end\nend\n\n@player\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y vel v] by (-1)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by (speed)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x vel v] by ((speed) * (-1))\n    switch costume to (costume2 v)\nend\nset [x vel v] to ((X vel) * (friction))\nchange x by (X vel)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (level v)?> then\n    change y by (slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X vel) ) / (X vel)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(X vel) > [0]> then\n            set [x vel v] to [-12]\n        else\n            set [x vel v] to [12]\n        end\n        set [y vel v] to [12]\n    else\n        set [x vel v] to [0]\n    end\nend\nchange y by (Y vel)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y vel) ) / (Y vel)) * (-1))\n    end\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (level v)?>> then\n    set [y vel v] to (jump height)\nend\nchange y by (1)\n\nwhen flag clicked\n\nwhen I receive [end v]\ngo to x: (-198) y: (-10)\n\nwhen I receive [intro v]\nshow\ngo to [front v] layer\nset [time v] to [0]\nset [level v] to [1]\nset [x vel v] to [0]\nset [y vel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-198) y: (-10)\npoint in direction (90)\nforever\n    Platformer Physics [1] [0.9] [13]\n    if <<<touching (danger v)?> or <touching (bad guy v)?>> or <touching (boss v)?>> then\n        set [ghost v] effect to (0)\n        start sound [Geometry Dash Death Sound Effect v]\n        repeat (18)\n            change y by (5)\n        end\n        repeat (20)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        show\n        go to x: (-198) y: (-10)\n    end\n    if <touching (trampoline v)?> then\n        set [y vel v] to [21]\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [hurt v]\nstart sound [Geometry Dash Death Sound Effect v]\ngo to x: (-198) y: (-10)\n\nwhen I receive [intro v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [intro v]\nforever\n    repeat until <(level) = [19]>\n        play sound [GEOMETRY DASH SOUNDTRACK - LEVEL 1 STEREO MADNESS v] until done\n    end\nend\n\nwhen I receive [outro v]\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [19]> then\n        show variable [time v]\n        broadcast (outro v)\n        stop all sounds\n        stop [this script v]\n    end\nend\n\nwhen I receive [intro v]\nforever\n    repeat until <(level) = [19]>\n        change [time v] by (1)\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nhide variable [time v]\n\n@level\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [intro v]\nshow\n\nwhen I receive [outro v]\nhide\n\n@end\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nshow\ngo to x: (136) y: (-4)\ngo to [back v] layer\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (end v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [18]> then\n        hide\n    end\nend\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [defeat boss v]\nforever\n    show\n    if <touching (player v)?> then\n        broadcast (end v)\n        wait (0.1) seconds\n        broadcast (outro v)\n        hide\n    end\nend\n\nwhen I receive [intro v]\nshow\ngo to x: (136) y: (-4)\ngo to [back v] layer\nswitch costume to (costume1 v)\nforever\n    if <(level) = [9]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [19]> then\n        go to [back v] layer\n        hide\n    end\nend\n\n@text\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [intro v]\nshow\n\nwhen I receive [outro v]\nhide\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (7) y: (2)\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Sprite1\n\nwhen flag clicked\nset [direction v] to [8]\nset size to (80) %\ngo to [front v] layer\nswitch costume to (capture2 v)\nshow\nchange [my variable v] by (10)\npoint in direction (90)\ngo to x: (400) y: (0)\nglide (0.25) secs to x: (0) y: (0)\nrepeat (85)\n    change [my variable v] by (10)\n    point in direction ((90) + (([sin v] of (my variable) ) * (10)))\nend\npoint in direction (90)\nrepeat (10)\n    change y by (10)\nend\nswitch costume to (capture3 v)\nwait (0.3) seconds\nhide\nwait (0.3) seconds\nshow\ngo to x: (0) y: (0)\nrepeat (120)\n    change [direction v] by (8)\n    point in direction ((([sin v] of ((direction) + (8)) ) * (20)) + (90))\n    set size to ((([sin v] of (((direction) + (8)) * (1.4)) ) * (60)) + (100)) %\nend\nwait (0.9) seconds\nglide (1) secs to x: (4000) y: (0)\nrepeat (4)\n    change [ghost v] effect by (60)\nend\nhide\nbroadcast (intro v)\npoint in direction (90)\n\nwhen flag clicked\nstart sound [my intro song v]\n\n@Sprite2\n\nwhen flag clicked\nrepeat (240)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\nset [brightness v] effect to (0)\npoint in direction (90)\ngo to [front v] layer\nswitch costume to (pick random (1) to (2))\nset [ghost v] effect to (pick random (20) to (50))\nset size to (pick random (40) to (80)) %\npoint in direction (pick random (-60) to (90))\nset [whirl v] effect to (pick random (-67) to (160))\nrepeat (240)\n    go to (random position v)\n    move (10) steps\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\n@danger\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [end v]\nshow\ngo to [back v] layer\nnext costume\n\nwhen I receive [intro v]\nshow\n\nwhen flag clicked\nhide\ngo to x: (-2) y: (6)\nforever\n    if <(level) = [19]> then\n        hide\n    end\nend\n\n@nothing\n\nwhen I receive [end v]\nchange [level v] by (1)\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [11]> then\n        show\n        go to x: (-9) y: (-93)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        hide\n    end\nend\n\n@Outro \n\ndefine Create A Clone Of Type (type)\nswitch costume to (type)\ncreate clone of (_myself_ v)\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    go to [front v] layer\n    go to x: (0) y: (-300)\n    Smooth Glide x: (0) y: (0) speed: (16)\n    wait until <(wait1) = [1]>\n    wait (0.1) seconds\n    repeat (drop repeat)\n        change y by (drop)\n        change [drop v] by (-0.5)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    go to [back v] layer\n    go [forward v] (1) layers\n    go to x: (0) y: (-300)\n    Smooth Glide x: (0) y: (0) speed: (16)\n    wait until <(wait1) = [1]>\n    wait (0.2) seconds\n    repeat (drop repeat)\n        change y by (drop)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    go to [back v] layer\n    go [forward v] (2) layers\n    go to x: (0) y: (-300)\n    Smooth Glide x: (0) y: (0) speed: (16)\n    wait until <(wait1) = [1]>\n    wait (0.3) seconds\n    repeat (drop repeat)\n        change y by (drop)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [5]> then\n    go to [back v] layer\n    go [forward v] (1) layers\n    go to x: (0) y: (-300)\n    Smooth Glide x: (0) y: (0) speed: (16)\n    wait until <(wait1) = [1]>\n    wait (0.4) seconds\n    repeat (drop repeat)\n        change y by (drop)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [6]> then\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to x: (0) y: (-300)\n    Smooth Glide x: (0) y: (0) speed: (16)\n    wait until <(wait1) = [1]>\n    wait (0.5) seconds\n    repeat (drop repeat)\n        change y by (drop)\n    end\n    hide\n    delete this clone\nend\nif <(costume [number v]) = [7]> then\n    go to x: (300) y: (0)\n    Smooth Glide x: (0) y: (1) speed: (16)\n    wait until <(wait1) = [1]>\n    repeat (20)\n        change x by (-10)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [9]> then\n    go to [front v] layer\n    point in direction (135)\n    Smooth turn: Direction [30] Speed [8]\n    forever\n        point in direction ((([sin v] of (logo effect1) ) * (5)) + (30))\n    end\nend\nif <(costume [number v]) = [10]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    point in direction (-135)\n    Smooth turn: Direction [-30] Speed [8]\n    forever\n        point in direction ((([cos v] of (logo effect1) ) * (5)) + (-30))\n    end\nend\nif <(costume [number v]) = [11]> then\n    go to x: (0) y: (0)\n    point in direction (0)\n    go to [front v] layer\n    go to [front v] layer\n    forever\n        point in direction ((([tan v] of (logo effect1) ) * (5)) + (90))\n        set size to ((([sin v] of ((logo effect1) * (2)) ) * (20)) + (130)) %\n        change [logo effect1 v] by (3)\n    end\nend\nif <(costume [number v]) = [13]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [front v] layer\n    go to [front v] layer\n    forever\n        go to x: (0) y: ((([sin v] of ((logo effect1) * (2)) ) * (20)) + (0))\n    end\nend\nif <(costume [number v]) = [14]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    forever\n        go to x: (0) y: ((([cos v] of ((logo effect1) * (2)) ) * (20)) + (130))\n    end\nend\n\ndefine Smooth turn: Direction (directieo) Speed (speed)\nrepeat until <(round (direction)) = (round (directieo))>\n    turn right (((round (directieo)) - (round (direction))) / (speed)) degrees\nend\npoint in direction (directieo)\n\nwhen I receive [outro v]\nset volume to (100) %\ngo to [front v] layer\nshow\nswitch costume to (sizer v)\nset size to (100) %\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (costume1 v)\nset [logo effect1 v] to [0]\nset [cos \(blue line\) v] to [0]\nset [drop v] to [7]\nset [wait1 v] to [0]\nset [drop repeat v] to [42]\nstart sound [Highscore v]\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nCreate A Clone Of Type [2]\nCreate A Clone Of Type [3]\nCreate A Clone Of Type [4]\nCreate A Clone Of Type [5]\nCreate A Clone Of Type [6]\nCreate A Clone Of Type [7]\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to [back v] layer\nwait (5) seconds\nchange [wait1 v] by (1)\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nwait (2.7) seconds\nswitch costume to (costume8 v)\nset [ghost v] effect to (0)\nCreate A Clone Of Type [9]\nCreate A Clone Of Type [10]\nswitch costume to (sizer v)\nset size to (100) %\nswitch costume to (costume8 v)\nCreate A Clone Of Type [11]\nCreate A Clone Of Type [13]\nCreate A Clone Of Type [14]\nswitch costume to (costume8 v)\n\n@bad guy\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [14]> then\n        switch costume to (geometry dash character 2 v)\n        show\n        go to x: (175) y: (-55)\n        glide (3) secs to x: (-155) y: (-55)\n        glide (3) secs to x: (175) y: (-55)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [15]> then\n        hide\n    end\nend\n\n@hitbox\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [16]> then\n        show\n        go to x: (4) y: (47)\n        switch costume to (costume1 v)\n        if <touching (player v)?> then\n            start sound [pop v]\n            set x to (0)\n            switch costume to (costume2 v)\n            set y to (0)\n            wait until <key (space v) pressed?>\n            start sound [pop v]\n            hide\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [17]> then\n        hide\n    end\nend\n\n@Boss\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nforever\n    if <(level) = [18]> then\n        go to x: (159) y: (-50)\n        switch costume to (boss v)\n        show\n        say [H]\n        wait (0.05) seconds\n        say [He]\n        wait (0.05) seconds\n        say [Hel]\n        wait (0.05) seconds\n        say [Hell]\n        wait (0.05) seconds\n        say [Hello]\n        wait (0.05) seconds\n        say [Hello!]\n        say [Hello!] for (2) seconds\n        say [I am going to defeat you!!] for (3) seconds\n        say [Hahahahahahahahahahahahaha] for (3) seconds\n        repeat (10)\n            wait (1) seconds\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            go to (random position v)\n            wait (0.3) seconds\n            repeat (20)\n                change [ghost v] effect by (-5)\n            end\n        end\n        go to x: (175) y: (-55)\n        repeat (4)\n            glide (3) secs to x: (-155) y: (-55)\n            glide (3) secs to x: (175) y: (-55)\n        end\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n        broadcast (defeat boss v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [19]> then\n        hide\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@skip\n\nwhen flag clicked\ngo to x: (-188) y: (-152)\nhide\n\nwhen I receive [intro v]\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            broadcast (end v)\n            wait (1) seconds\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [outro v]\nforever\n    hide\nend\n\n
  Welcome to the world of geometry dash!! :D \nTask- Defeat the boss It also has a skip button\nNote- Try not to skip..\n - Controls -\n- Arrow Keys or WASD to move\n- Comment your time!! :D\n- Up Arrow To Jump ( You can wall jump )\n- Dodge The Dangerous Things And fun dangerous \nstuff!! :D\n-To defeat the Boss Just dodge the boss until he disappears!! :D\nPlease Leave a ❤️ and ⭐ will be highly appreciated.\n