Diamond Alley #Games #Platformer#Mobile Friendly
@Stage\n\nwhen I receive [ruby alley v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [start game v]\nbroadcast (Start v)\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [the-score-feat-blackbear_-_dreamin \(1\) v] until done\nend\n\n@Player\n\nwhen [space v] key pressed\nforever\n    hide\n    broadcast (Outro v)\n    hide\nend\n\nwhen flag clicked\nhide variable [dead v]\nhide variable [level v]\nhide variable [skip v]\nhide variable [xv v]\nhide variable [yv v]\nhide\n\nwhen I receive [start v]\nshow\nTick\n\ndefine Tick\nshow\nset [dead v] to [0]\nset [level v] to [1]\nset size to (100) %\nReset\nforever\n    create clone of (_myself_ v)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(Dead) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (2)\n        if <touching (platform v)?> then\n            change y by (2)\n            if <touching (platform v)?> then\n                change y by (2)\n                if <touching (platform v)?> then\n                    change y by (2)\n                    if <touching (platform v)?> then\n                        change y by (2)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-2))\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) + (10))>>>> 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 [13]\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 (-0.8)\n    change y by (Yv)\n    if <touching (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <touching (lava v)?>> then\n        Dead\n    end\n    if <(y position) < [-180]> then\n        Dead\n    end\nend\n\ndefine Reset\nclear graphic effects\npoint in direction (90)\ngo to x: (-197) y: (-50)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (100) %\nshow\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [color v] effect by (20)\n    change size by (-1.5)\nend\ndelete this clone\n\ndefine Dead\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nReset\n\nwhen I receive [start v]\nforever\n    if <<[240] < (x position)> and <(Dead) = [0]>> then\n        broadcast (Next Level v)\n        change [level v] by (1)\n        Reset\n    end\nend\n\nwhen I receive [1 v]\nReset\n\nwhen I receive [start v]\nshow\nforever\n    forever\n        if <touching (bounce v)?> then\n            set [yv v] to [23]\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    play sound [Movie 2 v] until done\nend\n\nwhen I receive [shattered ruby v]\nsay [Oh-No! The Ruby Is Shattered!] for (2) seconds\n\n@Platform\n\nwhen I receive [start v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen [space v] key pressed\nhide\nbroadcast (Outro v) and wait\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\n\n@Spikes\n\nwhen flag clicked\nhide\nset size to (100) %\n\nwhen I receive [start v]\nforever\n    switch costume to (Level)\nend\n\nwhen [space v] key pressed\nhide\nbroadcast (Outro v)\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\nswitch costume to (1 v)\n\nwhen flag clicked\ngo to x: (35) y: (20)\nhide\n\nwhen I receive [start v]\nforever\n    if <(costume [number v]) = [2]> then\n        go to x: (-1) y: (-43)\n    end\n    if <(costume [number v]) = [4]> then\n        go to x: (6) y: (-45)\n    end\n    if <(costume [number v]) = [5]> then\n        go to x: (-22) y: (-68)\n    end\n    if <(costume [number v]) = [6]> then\n        go to x: (32) y: (-62)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (Ruby Alley v)\n        go to x: (-1) y: (-35)\n    end\n    if <(costume [number v]) = [8]> then\n        go to x: (35) y: (18)\n    end\n    if <(costume [number v]) = [9]> then\n        go to x: (35) y: (18)\n        broadcast (The Great Ruby v)\n    end\nend\n\n@Skip Button...\n\nwhen flag clicked\nhide\nset [skip v] to [0]\n\nwhen I receive [start v]\nshow\nshow\nset [skip v] to [1]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (130) %\n        switch costume to (costume2 v)\n    else\n        if <not <touching (mouse-pointer v)?>> then\n            set size to (100) %\n            switch costume to (costume1 v)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(Skip) = [1]> then\n    if <not <(Level) = [14]>> then\n        change [level v] by (1)\n    end\nend\n\n@Clouds\n\nwhen flag clicked\nset [ghost v] effect to (50)\nhide\n\nwhen I receive [start v]\nforever\n    wait (2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (5))\ngo to [back v] layer\ngo to x: (200) y: (pick random (50) to (180))\nshow\nrepeat until <(x position) < [-197]>\n    change x by (-3)\n    if <touching (line v)?> then\n        delete this clone\n    end\nend\nrepeat (10)\n    hide\n    delete this clone\nend\n\n@Line\n\nwhen flag clicked\nswitch costume to (blue alley v)\n\nwhen I receive [ruby alley v]\nswitch costume to (red alley v)\n\n@The Ruby\n\nwhen flag clicked\nhide\n\nwhen I receive [the great ruby v]\nshow\nswitch costume to (the ruby v)\nif <touching (player v)?> then\n    repeat (1)\n        switch costume to (shattered ruby v)\n        broadcast (Shattered Ruby v)\n        say [I Am Not Shattered Ha-ha] for (2) seconds\n    end\nelse\n    if <not <touching (player v)?>> then\n    end\nend\n\n@Enimie\n\nwhen flag clicked\nhide\n\nwhen I receive [shattered ruby v]\nshow\nwait (3) seconds\nbroadcast (Shattered Diamond v)\nsay [You Shattered Our Ruby! Now I Will Shatter Your Diamond...] for (5) seconds\n\n@The Diamond\n\nwhen flag clicked\nhide\n\nwhen I receive [shattered diamond v]\nswitch costume to (the diamond v)\ngo to x: (-43) y: (224)\nshow\nglide (4) secs to x: (-193) y: (21)\nif <touching (platform v)?> then\n    switch costume to (shattered diamond v)\n    broadcast (To Be Continued v)\n    wait (2) seconds\nend\n\n@To Be Continued...\n\nwhen flag clicked\nhide\n\nwhen I receive [to be continued v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ 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 <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\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 [loved__ 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 [loved__ 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 [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Intro\n\nwhen flag clicked\nset [intro v] to [0]\nclear graphic effects\nset size to (100) %\nhide\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nwait (3.4) seconds\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nwait until <(INTRO) = [1]>\ngo to x: (-180) y: (0)\nswitch costume to (4 v)\nset size to (100) %\nrepeat (4)\n    create clone of (_myself_ v)\n    change [color v] effect by (50)\n    change x by (120)\n    wait (0.1) seconds\nend\nwait until <(INTRO) = [2]>\nswitch costume to (5 v)\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nbroadcast (Start Game v) and wait\n\nwhen I start as a clone\nshow\n\nwhen I start as a clone\nif <(costume [name v]) = [1]> then\n    go to x: (0) y: (0)\n    go to [back v] layer\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [2]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [3]> then\n    go to x: (0) y: (-190)\n    go to [front v] layer\n    set [vel v] to [20]\n    repeat (20)\n        change [vel v] by (-1)\n        change y by (Vel)\n    end\n    set [intro v] to [1]\n    repeat (4)\n        change size by (10)\n        wait (0.1) seconds\n    end\n    wait (0.5) seconds\n    set [vel v] to [0]\n    repeat (20)\n        change [vel v] by (-1)\n        change y by (Vel)\n    end\n    switch costume to (6 v)\n    go to x: (0) y: (190)\n    set [vel v] to [-20]\n    repeat (20)\n        change [vel v] by (1)\n        change y by (Vel)\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [4]> then\n    change y by (190)\n    go to [back v] layer\n    go [forward v] (1) layers\n    set [vel v] to [-20]\n    repeat (20)\n        change [vel v] by (1)\n        change y by (Vel)\n    end\n    wait (1) seconds\n    repeat (10)\n        change [color v] effect by (10)\n    end\n    wait (1) seconds\n    set [intro v] to [2]\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [5]> then\n    set size to (100) %\n    go to x: (0) y: (233)\n    set [vel v] to [-22]\n    repeat (22)\n        go to [front v] layer\n        change [vel v] by (1)\n        change y by (Vel)\n    end\n    set [intro v] to [3]\n    wait (1) seconds\n    repeat (25)\n        change [ghost v] effect by (4)\n    end\n    broadcast (START GAME v)\n    delete this clone\nend\n\nset [vel v] to [20]\n\nwhen I start as a clone\nif <not <(costume [name v]) = [5]>> then\n    wait until <(INTRO) = [3]>\n    delete this clone\nend\n\n
This Took Me  A Lot Of Time To Make *Phew* So Yeah WASD Or Arrow Keys To Move , This Game Has A Story In It So Pay Attention And To Get A Cinimatic In The End , You Have To Touch The Ruby And Move Away From It To Get A Cinimatic. Pls Heart And Fave:)\nUpdate: Made The Cavern Spikes Level A Bit Easier Because People Were Saying It's To Hard;D\nTuesday,23rd Feb: Thx Guys For 100 Views Within A Day! This Game Has The Most Views In My Account AND Its Only A Day My Second Most Views Is That TIC-TAC-TOE Game And Till Now It Has Only 50 Views But Here In 1 Day I got 100 Views AND 11 Heart And Fave Imean That's Also The MAX Heart And Fave I Got! Didnt Now It Would Be So Good!\n