-[ The Cavelands ]- A platformer
@Stage\n\n@player\n\nwhen flag clicked\n\nwhen I start as a clone\nrepeat (12)\n    change size by (-5)\n    change [ghost v] effect by (12)\n    if <(costume [number v]) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(costume [number v]) = [3]> then\n        switch costume to (costume4 v)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.8) seconds\ngo to x: (-219) y: (2)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\nwhen I receive [startgame v]\nbroadcast (bright transition v)\nset [speedx v] to [0]\nset [speedy v] to [0]\nwait (1) seconds\nhide\ngo to [front v] layer\nshow\nswitch costume to (costume1 v)\nset volume to (100) %\npoint in direction (90)\nset size to (100) %\ngo to x: (-219) y: (2)\nforever\n    create clone of (_myself_ v)\n    change [speedy v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [speedx v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [speedx v] by (1)\n    end\n    set [speedx v] to ((speedX) * (0.9))\n    change x by (speedX)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                change x by ((speedX) * (-1))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    set [speedy v] to [8]\n                                    if <(speedX) > [0]> then\n                                        set [speedx v] to [-8]\n                                    else\n                                        set [speedx v] to [8]\n                                    end\n                                else\n                                    set [speedx v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (SpeedY)\n    if <touching (level v)?> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n    end\n    change y by (-0.5)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (level v)?>> then\n        set [speedy v] to [8]\n    end\n    change y by (0.5)\n    if <touching (danger v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (10)\n        end\n        go to x: (-219) y: (2)\n        set [ghost v] effect to (0)\n        set size to (100) %\n        set [speedx v] to [0]\n        set [speedy v] to [0]\n    end\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < (y position)>>> then\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume1 v)\n    end\n    if <(x position) = [243]> then\n        broadcast (nextlevel v)\n        wait (1) seconds\n        go to x: (-219) y: (2)\n        set [speedx v] to [0]\n        set [speedy v] to [0]\n    end\nend\n\nwhen I receive [startgame v]\nforever\n    play sound [Inferno v] until done\n    play sound [Vexento - Pixel Party v] until done\n    play sound [Muselk outro v] until done\nend\n\n@Transition\n\nwhen flag clicked\ngo to x: (484) y: (0)\nhide\n\nwhen I receive [nextlevel v]\ngo to [front v] layer\nshow\ngo to x: (484) y: (0)\nrepeat until <[40] > (x position)>\n    change x by (-40)\nend\nwait (0.5) seconds\nrepeat until <[-500] > (x position)>\n    change x by (-40)\nend\nhide\n\n@text\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [nextlevel v]\nwait (0.8) seconds\nnext costume\n\nwhen I receive [startgame v]\nwait (1) seconds\nshow\ngo to [front v] layer\ngo [forward v] (99999999999) layers\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\n@Particles\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-219) to (219)) y: (160)\nswitch costume to (pick random (1) to (3))\nchange size by (pick random (-30) to (-20))\nrepeat until <touching (_edge_ v)?>\n    change y by (-12)\nend\ndelete this clone\n\nwhen flag clicked\ngo [backward v] (2) layers\nhide\nforever\n    wait (0.01) seconds\n    create clone of (_myself_ v)\nend\n\n@level\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.8) seconds\nnext costume\n\nwhen I receive [startgame v]\nwait (1) seconds\nshow\nswitch costume to (costume1 v)\n\n@nextlevel\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nset [brightness v] effect to (0)\nchange [brightness v] effect by (60)\nbroadcast (nextlevel v)\nset [brightness v] effect to (0)\n\nwhen I receive [startgame v]\nwait (1) seconds\ngo to [front v] layer\ngo to x: (-191) y: (-141)\nset [ghost v] effect to (0)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (2))\n    else\n        change size by (((100) - (size)) / (2))\n    end\nend\n\nwhen I receive [startgame v]\npoint in direction (90)\nforever\n    repeat (6)\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\n    repeat (12)\n        turn left (1) degrees\n        wait (0.01) seconds\n    end\n    repeat (6)\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\n\nwait (1) seconds\n\n@border\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nwait (1) seconds\ngo to [front v] layer\ngo [forward v] (999999) layers\ngo to x: (0) y: (0)\nshow\n\n@danger\n\nwhen I receive [nextlevel v]\nwait (0.8) seconds\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\n@luv & Fav 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\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Intro\n\nwhen flag clicked\ngo [backward v] (1) layers\nhide\nshow\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\npoint in direction (90)\nrepeat (150)\n    turn right (1) degrees\nend\n\nwhen I receive [hide background v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@intro\n\nwhen flag clicked\npoint in direction (90)\ngo to [front v] layer\ngo to [front v] layer\ngo [forward v] (9999) layers\nstart sound [LilScratchAnimator music v]\nset volume to (100) %\nshow\nswitch costume to (part 1 v)\nset size to (0) %\nwait (0.1) seconds\nrepeat (10)\n    change size by (10)\nend\nrepeat (3)\n    change size by (4)\nend\nbroadcast (particles v)\nwait (0.05) seconds\nrepeat (3)\n    change size by (-4)\nend\nwait (0.5) seconds\nrepeat (10)\n    turn right (18) degrees\n    change size by (-10)\n    wait (0.01) seconds\nend\nhide\nwait (0.05) seconds\nswitch costume to (part 2 v)\nshow\nrepeat (10)\n    turn right (18) degrees\n    change size by (10)\n    wait (0.01) seconds\nend\nrepeat (3)\n    change size by (4)\nend\nbroadcast (particles v)\nwait (0.05) seconds\nrepeat (3)\n    change size by (-4)\nend\nwait (1) seconds\nrepeat (10)\n    change size by (-10)\nend\nhide\nbroadcast (hide background v)\nrepeat (7)\n    wait (0.1) seconds\n    change volume by (-10)\nend\nbroadcast (startgame v)\nrepeat (3)\n    wait (0.1) seconds\n    change volume by (-10)\nend\n\n@particles\n\ndefine stuff (stuff)\nchange size by (pick random (50) to (-30))\nswitch costume to (pick random (1) to (4))\ngo [forward v] (1) layers\nset [ghost v] effect to (pick random (10) to (20))\nset [x v] to [2]\nclear graphic effects\nforever\n    change [y v] by (-3)\n    if <touching (_edge_ v)?> then\n        if <(x) = [1]> then\n            set [x v] to [-1]\n        else\n            set [x v] to [1]\n        end\n    end\n    change y by (y)\n    change x by ((stuff) * (x))\n    if <(y position) < [-170]> then\n        delete this clone\n    end\nend\n\nwhen I receive [particles v]\ngo to (intro v)\nif <touching (_edge_ v)?> then\n    set [y v] to [20]\nelse\n    set [y v] to [5]\nend\ngo to (intro v)\nrepeat (18)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset size to (80) %\n\nwhen I start as a clone\ngo [forward v] (1) layers\nshow\nstuff (pick random (-20) to (20))\n\n@bright transition\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen I receive [bright transition v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    wait (0.005) seconds\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.005) seconds\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Blank\n\n@Sprite1\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nwait (1) seconds\nshow\n\n
Use the arrow keys, WASD, or your finger, depending on if you're using a computer or not. Move around,and navigate the caves . Have fun, and love and fave!\nI added:\nMobile mode\nJumping bug\nTransition problem\nMore to come soon