Geometry dash platformer // Mobile platformer #games
@Stage\n\nwhen flag clicked\nswitch backdrop to (blue1 v)\nforever\n    play sound [level2 v] until done\nend\n\nwhen flag clicked\nset [volume v] to [100]\nshow variable [volume v]\nforever\n    set volume to (Volume) %\nend\n\nwhen I receive [di endddd v]\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (-200) y: (0)\nset [speed y v] to [0]\nforever\n    change [speed y v] by (-1)\n    set [speed x v] to ((Speed X) * (0.8))\n    change y by (Speed Y)\n    Touch ground <(Speed Y) > [0]>\n    if <(Walljump) > [0]> then\n        change [walljump v] by (-1.)\n    else\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n            change [speed x v] by (1.5)\n        end\n        if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n            change [speed x v] by (-1.5)\n        end\n    end\n    if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> and <(falling?) < [3]>> then\n        set [speed y v] to [15]\n    end\n    if <(Speed X) < [-0.5]> then\n        Walk [5] (Speed X)\n    else\n        if <[0.5] < (Speed X)> then\n            Walk [5] (Speed X)\n        end\n    end\nend\n\ndefine Touch ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\ndefine Walk (x) (speed)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> and <([abs v] of (speed) ) > [3]>> then\n        if <(Walljump) = [0]> then\n            set [speed x v] to ((-2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n        else\n            set [speed x v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<[230] < (x position)> or <touching (spikes v)?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (-5)\n        end\n        if <[230] < (x position)> then\n            change [level v] by (1)\n        end\n        set [falling? v] to [0]\n        set [speed y v] to [0]\n        set [speed x v] to [0]\n        set [walljump v] to [0]\n        set [slope v] to [0]\n        go to x: (-200) y: (0)\n        repeat (10)\n            change [ghost v] effect by (-10)\n            change size by (5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(mouse y) < (y position)> and <mouse down?>> or <<key (down arrow v) pressed?> or <key (s v) pressed?>>> then\n        if <(costume [number v]) = [5]> then\n            switch costume to (c5 v)\n        else\n            next costume\n        end\n    else\n        if <(costume [number v]) = [1]> then\n            switch costume to (c v)\n        else\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen I receive [skiiip v]\nset [falling? v] to [0]\nset [speed y v] to [0]\nset [speed x v] to [0]\nset [walljump v] to [0]\nset [slope v] to [0]\ngo to x: (-200) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        play sound [explosion  v] until done\n    end\nend\n\nwhen flag clicked\nset [volume v] to [100]\nforever\n    set volume to (Volume) %\nend\n\nwhen I receive [di endddd v]\nhide\n\n@Ground\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [di endddd v]\nhide\n\n@Spikes\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nforever\n    if <(Level) = [11]> then\n        go to x: (-9) y: (-23)\n        repeat until <not <(Level) = [11]>>\n            turn right (1) degrees\n        end\n    else\n        if <(Level) = [12]> then\n            go to x: (0) y: (0)\n            point in direction (90)\n            repeat until <not <(Level) = [12]>>\n                repeat (40)\n                    change y by (1)\n                end\n                repeat (40)\n                    change y by (-1)\n                end\n            end\n        else\n            if <(Level) = [13]> then\n                go to x: (51) y: (37)\n                repeat until <not <(Level) = [13]>>\n                    turn left (2) degrees\n                end\n            else\n                go to x: (0) y: (0)\n                point in direction (90)\n            end\n        end\n    end\nend\n\nwhen I receive [di endddd v]\nhide\n\n@Skip button\n\nwhen flag clicked\nshow\ngo to x: (-190) y: (130)\n\nwhen this sprite clicked\nbroadcast (Skiiip v)\nchange [level v] by (1)\n\nwhen I receive [di endddd v]\nhide\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    go to [front v] layer\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite1\n\nwhen I start as a clone\nhide\ngo to [front v] layer\nclear graphic effects\nset [color v] effect to (pick random (1) to (200))\nset size to (pick random (50) to (100)) %\ngo to x: (pick random (240) to (-240)) y: (180)\npoint in direction (90)\nshow\nglide (pick random (1) to (3)) secs to x: (pick random (240) to (-240)) y: (-180)\nhide\ndelete this clone\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    if <(Level) = [15]> then\n        broadcast (Di endddd v)\n        forever\n            create clone of (_myself_ v)\n        end\n    end\nend\n\n@Sprite2\n\nwhen I receive [di endddd v]\nhide\n\nwhen this sprite clicked\nbroadcast (Skiiip v)\n\nwhen flag clicked\nshow\ngo to x: (-100) y: (130)\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    go to [front v] layer\nend\n\n
If you remix this, please credit me(@Walimimi)!!!\n\nDon't touch the spikes or.\nUse the arrows or, on, mobile touch to move.\nPress the first button to skip a level. Press the second one to reset the level.\n\nNe touchez pas les piques.\nUtilisez les flèches ou touchez si vous êtes sur mobile.\nCliquez sur le premier bouton pour sauter un niveau. Cliquez sur le second pour redémarrer le niveau.\n\n#games #platformer #platformers #mobile #gd #geometry