Elly's Rescue Adventure! | A Platformer 

Instructions: -- Ellys Rescue Adventure! | A Platformer ! | A platformer -- \nby @Ellyflower\n\nthere is two ending! good luck\n\nI hope you like my game, is the part 2!\n\n-= Story =-\n\nOne day, Piggy was foraging some mushrooms, and never return, is she lost? Elly it very worried, Elly is going to the forest to search Piggy!\n✎ Platfomer Difficulty: ★★☆☆☆\n\n[] controls []\n\nWASD / Arrow keys\nhold and move for mobile\n\n[] credits []\n\nidea by me \nart by peapix and me\n@griffpatch and @hern1 for inspiration and some codes \nmusic from @-xaf-\nsound effects from scratch\nmore than 400+ blocks\n\n☎ If there are any bugs or glitches, please tell me \n\n⚠️ Only if you ⭐️ the project, you can advertise \n\n-tags-\n\n#all #games #Peapix #platformer #platform #trending #adventure #easy #music #explore #art #stories #fun #cute #forest #mushroome

@Stage\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [nhạc v] until done\nend\n\nwhen I receive [hide v]\nset volume to (0) %\nstop [other scripts in sprite v]\n\n@con heo\n\nwhen flag clicked\nset [cấp độ v] to [1]\nset [tốc độ của heo con \(y\) v] to [0]\nset [tốc độ của heo con \(x\) v] to [0]\nhide variable [cấp độ v]\nhide variable [tốc độ của heo con \(y\) v]\nhide variable [tốc độ của heo con \(x\) v]\ngo to [front v] layer\nshow\nset size to (90) %\nswitch costume to (player v)\nset drag mode [not draggable v]\ngo to x: (-54) y: (-31)\npoint in direction (90)\nbroadcast (play v)\n\nwhen I receive [play v]\nforever\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [tốc độ của heo con \(x\) v] by (-2)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [tốc độ của heo con \(x\) v] by (2)\n    end\n    set [tốc độ của heo con \(x\) v] to ((tốc độ của heo con \(X\)) * (0.8))\n    change x by (tốc độ của heo con \(X\))\n    if <touching (cấp độ v)?> then\n        change y by (1)\n        if <touching (cấp độ v)?> then\n            change y by (1)\n            if <touching (cấp độ v)?> then\n                change y by (1)\n                if <touching (cấp độ v)?> then\n                    change y by (1)\n                    if <touching (cấp độ v)?> then\n                        change y by (1)\n                        if <touching (cấp độ v)?> then\n                            change x by ((tốc độ của heo con \(X\)) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(tốc độ của heo con \(X\)) > [0]> then\n                                    set [tốc độ của heo con \(x\) v] to [-7]\n                                else\n                                    set [tốc độ của heo con \(x\) v] to [7]\n                                end\n                                set [tốc độ của heo con \(y\) v] to [14]\n                            else\n                                set [tốc độ của heo con \(x\) v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (cấp độ v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [tốc độ của heo con \(y\) v] to [13]\n        end\n    end\n    change y by (1.2)\n    change [tốc độ của heo con \(y\) v] by (-1)\n    change y by (tốc độ của heo con \(Y\))\n    if <touching (cấp độ v)?> then\n        change y by ((tốc độ của heo con \(Y\)) * (-0.8))\n        set [tốc độ của heo con \(y\) v] to [0]\n    end\n    if <[-230] > (x position)> then\n        broadcast (next v)\n        broadcast (s v)\n        start sound [Coin v]\n        set [tốc độ của heo con \(y\) v] to [0]\n        set [tốc độ của heo con \(x\) v] to [0]\n    end\n    if <(y position) < [-230]> then\n        broadcast (next v)\n        broadcast (s v)\n        start sound [Coin v]\n        set [tốc độ của heo con \(x\) v] to [0]\n        set [tốc độ của heo con \(y\) v] to [0]\n    end\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\ndefine  đi đây\nset [tốc độ của heo con \(x\) v] to [0]\nset [tốc độ của heo con \(y\) v] to (tốc độ của heo con \(X\))\nif <<(cấp độ) = [3]> or <(cấp độ) = [8]>> then\n    go to x: (200) y: (200)\nelse\n    if <<(cấp độ) = [4]> or <(cấp độ) = [10]>> then\n        go to x: (200) y: (200)\n    else\n        if <(cấp độ) = [5]> then\n            go to x: (200) y: (100)\n        else\n            if <(cấp độ) = [2]> then\n                go to x: (200) y: (200)\n            else\n                if <(cấp độ) = [1]> then\n                    go to x: (200) y: (200)\n                else\n                    if <(cấp độ) = [6]> then\n                        go to x: (200) y: (200)\n                    else\n                        if <(cấp độ) = [7]> then\n                            go to x: (200) y: (200)\n                        else\n                            if <(cấp độ) = [11]> then\n                                go to x: (200) y: (-31)\n                            else\n                                if <(cấp độ) = [9]> then\n                                    go to x: (200) y: (-31)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [pitch v] effect to (-20)\nset volume to (40) %\nforever\n    if <touching (gai v)?> then\n        go to x: (200) y: (200)\n        set [tốc độ của heo con \(x\) v] to [0]\n        set [tốc độ của heo con \(y\) v] to (tốc độ của heo con \(X\))\n        start sound [Crunch v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (player2 v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (player v)\n    end\n    if <<<mouse down?> and <(y position) > (mouse y)>> or <<key (down arrow v) pressed?> or <key (s v) pressed?>>> then\n        switch costume to (player4 v)\n    end\n    if <touching (đừng có đến gần tôi v)?> then\n        go to x: (200) y: (200)\n        start sound [Crunch v]\n    end\nend\n\nwhen I receive [s v]\n đi đây\n\n@cấp độ\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (10 v)\n\nwhen I receive [hide v]\nhide\n\n@mặt trời\n\nwhen flag clicked\nset size to (100) %\ngo to [back v] layer\nshow\nbroadcast (play v)\n\nwhen I receive [play v]\ngo to x: (0) y: (0)\nforever\n    repeat until <(size) > [150]>\n        change size by (0.3)\n    end\n    repeat until <(size) < [100]>\n        change size by (-0.3)\n    end\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\n@chữ\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (1 v)\nclear graphic effects\nset [ghost v] effect to (100)\n\nwhen I receive [play v]\nwait (1) seconds\nrepeat (7)\n    wait (0.5) seconds\n    repeat (15)\n        change [ghost v] effect by (-5)\n    end\n    play sound [pop v] until done\n    wait (0.5) seconds\n    repeat (15)\n        change [ghost v] effect by (5)\n    end\n    next costume\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [play v]\nforever\n    if <(cấp độ) = [5]> then\n        clear graphic effects\n        set [ghost v] effect to (100)\n        switch costume to (7 v)\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (-5)\n        end\n        start sound [pop v]\n        wait (1) seconds\n        repeat (15)\n            change [ghost v] effect by (5)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <(cấp độ) = [9]> then\n        clear graphic effects\n        set [ghost v] effect to (100)\n        switch costume to (8 v)\n        wait (2) seconds\n        repeat (15)\n            change [ghost v] effect by (-7)\n        end\n        play sound [Magic Spell v] until done\n        wait (1) seconds\n        repeat (15)\n            change [ghost v] effect by (7)\n        end\n    end\nend\n\n@bảng hiệu\n\nwhen flag clicked\nhide\nwait (5) seconds\nforever\n    if <(cấp độ) = [4]> then\n        go to x: (140) y: (168)\n        switch costume to (bảng hiệu v)\n        show\n        go to [front v] layer\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (7)\n            change y by (3)\n        end\n        repeat (6)\n            change y by (-2)\n        end\n        wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        repeat (17)\n            change y by (7)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\nwait (5) seconds\nforever\n    if <(cấp độ) = [8]> then\n        go to x: (140) y: (168)\n        switch costume to (bảng hiệu v)\n        show\n        go to [front v] layer\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (7)\n            change y by (3)\n        end\n        repeat (6)\n            change y by (-2)\n        end\n        wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        repeat (17)\n            change y by (7)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\n@đám mây\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (4) to (6)) seconds\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (3))\ngo [backward v] (12) layers\ngo to x: (300) y: (pick random (80) to (120))\nforever\n    set [ghost v] effect to (0)\n    glide (8) secs to x: (-300) y: (y position)\n    repeat (20)\n        change [ghost v] effect by (6)\n    end\n    wait (0.5) seconds\n    delete this clone\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\n@đằng sau \n\nwhen I receive [next v]\nnext costume\nchange [cấp độ v] by (1)\n\nwhen flag clicked\nset [cấp độ v] to [0]\nshow\nswitch costume to (rừng10 v)\ngo [backward v] (7) layers\n\nwhen I receive [hide v]\nhide\n\n@hình \n\nwhen flag clicked\nforever\n    if <(username) = [Ellyflower]> then\n        if <key (9 v) pressed?> then\n            clear graphic effects\n            show\n            broadcast (hide v)\n        end\n    end\nend\n\nwhen flag clicked\ngo [forward v] (20000) layers\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [hide v]\nstop [other scripts in sprite v]\n\n@gai\n\nwhen flag clicked\nswitch costume to (sự nguy hiểm10 v)\nset [brightness v] effect to (-20)\nshow\ngo [backward v] (1) layers\n\nwhen I receive [next v]\nnext costume\n\n@đừng có đến gần tôi\n\nwhen flag clicked\nshow\n\n@Lá cây\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (pick random (40) to (60)) %\nset [ghost v] effect to (pick random (20) to (70))\ngo to x: (500) y: (pick random (20) to (180))\nglide (pick random (1.07) to (5)) secs to x: (-240) y: (pick random (-100) to (180))\nif <touching (_edge_ v)?> then\n    repeat (10)\n        change [ghost v] effect by (5)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    wait (0.4) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [hide v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\nhide\nswitch costume to (costume1 v)\nforever\n    if <(cấp độ) = [10]> then\n        set size to (100) %\n        show\n        go to x: (0) y: (0)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nswitch costume to (player v)\nforever\n    if <(cấp độ) = [10]> then\n        go to [front v] layer\n        set size to (100) %\n        show\n        go to x: (0) y: (0)\n    end\n    if <(costume [number v]) = [23]> then\n        stop [all v]\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    if <(cấp độ) = [10]> then\n        go to x: (0) y: (0)\n        go to [front v] layer\n        show\n    end\nend\n\n