Crystal Mines | Platformer #games
@Stage\n\nwhen flag clicked\nforever\n    play sound [cool moosic v] until done\nend\n\nwhen I receive [start project v]\n\nwhen I receive [start project v]\nbroadcast (play v)\n\n@Player\n\nwhen I start as a clone\nswitch costume to (2 v)\nclear graphic effects\nset size to (80) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-8)\nend\ndelete this clone\n\nwhen I receive [play v]\nset rotation style [left-right v]\nswitch costume to (costume1 v)\nset size to (250) %\nshow\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (1)\n        point in direction (90)\n        if <(Yv) = [0]> then\n            create clone of (particle v)\n        end\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 [xv v] by (-1)\n        point in direction (-90)\n        if <(Yv) = [0]> then\n            create clone of (particle v)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (stage v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (stage v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <touching color (#00cc44)?> then\n        set size to (250) %\n        go to x: (-164) y: (-125)\n        broadcast (next v)\n    end\n    if <touching (do not touch v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        set size to (250) %\n        go to x: (-175) y: (-125)\n    end\n    if <touching color (#4c0099)?> then\n        wait (0.15) seconds\n        set size to (210) %\n    end\n    if <touching color (#cccc00)?> then\n        wait (0.15) seconds\n        set size to (250) %\n    end\n    if <([y position v] of [player v]) < [-178]> then\n        hide\n        wait (0.2) seconds\n        show\n        set size to (250) %\n        go to x: (-191) y: (-144)\n    end\n    if <(x position) > [240]> then\n        wait (0.01) seconds\n        show\n        broadcast (next v)\n        set size to (250) %\n        go to x: (-191) y: (-130)\n        change [stage v] by (1)\n    end\nend\n\nwhen I receive [play v]\ngo to x: (-174) y: (-125)\nclear graphic effects\nshow\n\nwhen [r v] key pressed\ngo to x: (-174) y: (-125)\n\nwhen I receive [i want taco bell v]\ngo to x: (-174) y: (-125)\n\ngo to (random position v)\n\nwhen flag clicked\nhide\nbroadcast (play v)\n\n@Sprite1\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nset size to (250) %\nforever\n    go to (player v)\n    point in direction ([direction v] of [player v])\nend\n\nwhen flag clicked\nhide\n\n@Do NoT ToUcH\n\nwhen flag clicked\n\nrepeat (12)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo [backward v] (3) layers\nforever\n    switch costume to (Stage)\nend\n\n@Stage\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\ngo [backward v] (2) layers\nset [stage v] to [1]\nforever\n    switch costume to (Stage)\nend\n\n@particle\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to position\nclear graphic effects\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset [offset v] to [0]\nrepeat (7)\n    turn right (xspeed) degrees\n    set [change v] to (pick random (-1) to (1))\n    change [offset v] by (change)\n    change y by (change)\n    adjustposition\nend\ndelete this clone\n\ndefine go to position\nshow\ngo to (player v)\nchange y by (pick random (-27) to (-24))\nhide\n\ndefine adjustposition\nif <(offset) < [0]> then\n    change y by (1)\n    change [offset v] by (1)\nend\n\nwhen I receive [move v]\n\n@Sprite2\n\nwhen flag clicked\nreset timer\nhide\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\nforever\n    if <(timer) > [0.01]> then\n        switch costume to (costume1 v)\n        set size to (105) %\n        switch costume to (costume1 v)\n        set [shake v] to [10]\n        go to [front v] layer\n        show\n        repeat (40)\n            go to x: (pick random ((shake) / ((shake) * (2))) to (shake)) y: (pick random ((shake) / ((shake) * (2))) to (shake))\n            change [shake v] by (-0.25)\n        end\n        go to x: (0) y: (0)\n        repeat until <(round (size)) = [100]>\n            switch costume to (costume4 v)\n            set size to ((size) + (((100) - (size)) / (5))) %\n            switch costume to (costume3 v)\n        end\n    end\nend\n\n@Awesome Particles\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (6) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (5) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (4) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (3) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (2.5) secs to x: (x position) y: (200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (-180)\n    create clone of (_myself_ v)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@c\n\nwhen I receive [play v]\nset [$ v] to [0]\nswitch costume to (1 v)\nset size to (50) %\ngo to [front v] layer\ngo to x: (-50) y: (-132)\nshow\n\nwhen I start as a clone\nhide\ngo to (random position v)\nrepeat until <not <touching color (#e8e8e8)?>>\n    go to x: (pick random (-200) to (180)) y: (pick random (-100) to (-135))\nend\nshow\nforever\n    if <touching (player v)?> then\n        wait until <not <touching (player v)?>>\n        change [$ v] by (5)\n    end\nend\n\nwhen I receive [play v]\ncreate clone of (_myself_ v)\n\nwhen I receive [play v]\nshow variable [$ v]\nforever\n    if <touching (player v)?> then\n        hide\n        change [$ v] by (5)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        hide\n        change [$ v] by (5)\n        delete this clone\n    end\nend\n\nwhen I receive [play v]\nshow\n\nwhen I receive [next v]\nhide\ngo to (random position v)\nrepeat until <not <touching (stage v)?>>\n    go to x: (pick random (-200) to (180)) y: (pick random (-100) to (-135))\nend\nshow\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\ndelete this clone\n\n
PLEASE LOVE AND FAVE!\nHow to move - Use arrow keys or mobile controls\nDo not touch - Spike - Lava - Sharp Crystals\ncollect gems, get the highest score!\n R to Reset \n#22 games trending!\nsong: Mayday by TheFatRat\nthanks to\n@TNTend and @TheMario11\nfor some coding\nclipart