● Totoro | A Platformer ●

Instructions: ●Hiii! \n\n●This is my first platformer! I loveee totoro, so I decided to make a totoro platformer! I'm still learning how scratch works, so this isn't the best platformer.\n\n●ATTENTION! WITH YOUR OWN ART AND CODE, PLEASE CHANGE AT LEAST 5 THINGS BEFORE REMIXING AND CREDIT ME IN THE DESC. PLS! (with @--Cloudii_Star-- )\n\n●TOP trending in totoro?? AHHHHHHHH 10/23/2023\nhttps://scratch.mit.edu/search/projects?mode=trending&q=totoro\n\n●Hope you have fun playing this!\n\n●Tell me in the comments if there's a bug or a problem or if you need help! \n◆◇◆◇◆◇◆◇◆◇◆◇◆

@Stage\n\nwhen flag clicked\nforever\n    play sound [Music 🎶 v] until done\nend\n\n@Totoro\n\nwhen flag clicked\nswitch costume to (right v)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-193) y: (-80)\nset size to (60) %\nforever\n    if <touching color (#bdbdbd)?> then\n        go to x: (-193) y: (-80)\n    end\n    if <touching color (#cfffd1)?> then\n        go to x: (-193) y: (-80)\n        broadcast (next level v)\n    end\n    if <touching color (#ff6f6f)?> then\n        go to x: (-193) y: (-80)\n    end\n    if <touching color (#ffffff)?> then\n        go to x: (-193) y: (-80)\n    end\n    if <touching color (#96f6ff)?> then\n        go to x: (-193) y: (-80)\n    end\nend\n\nwhen flag clicked\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (left v)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<<touching color (#97ffad)?> or <touching color (#fdfdfd)?>> or <touching color (#54d064)?>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\nend\n\n@Leaf\n\nwhen flag clicked\nset [level v] to [1]\nshow\nset size to (50) %\nforever\n    if <(Level) = [1]> then\n        go to x: (203) y: (-55)\n    else\n        if <(Level) = [2]> then\n            go to x: (203) y: (-55)\n        else\n            if <(Level) = [3]> then\n                go to x: (203) y: (-55)\n            else\n                if <(Level) = [4]> then\n                    go to x: (203) y: (-55)\n                else\n                    if <(Level) = [5]> then\n                        go to x: (203) y: (-55)\n                    else\n                        if <(Level) = [6]> then\n                            go to x: (203) y: (-55)\n                        else\n                            if <(Level) = [7]> then\n                                go to x: (216) y: (150)\n                            else\n                                if <(Level) = [8]> then\n                                    go to x: (203) y: (-55)\n                                else\n                                    if <(Level) = [9]> then\n                                        go to x: (203) y: (-55)\n                                    else\n                                        if <(Level) = [10]> then\n                                            go to x: (203) y: (-55)\n                                        else\n                                            if <(Level) = [11]> then\n                                                go to x: (203) y: (-55)\n                                            else\n                                                if <(Level) = [12]> then\n                                                    go to x: (217) y: (138)\n                                                else\n                                                    if <(Level) = [13]> then\n                                                        go to x: (211) y: (143)\n                                                    else\n                                                        if <(Level) = [14]> then\n                                                            go to x: (203) y: (-55)\n                                                        else\n                                                            if <(Level) = [15]> then\n                                                                go to x: (214) y: (84)\n                                                            else\n                                                                if <(Level) = [16]> then\n                                                                    go to x: (202) y: (-4)\n                                                                else\n                                                                    if <(Level) = [17]> then\n                                                                        go to x: (207) y: (142)\n                                                                    else\n                                                                        if <(Level) = [18]> then\n                                                                            go to x: (203) y: (-55)\n                                                                        else\n                                                                            if <(Level) = [19]> then\n                                                                                go to x: (203) y: (-55)\n                                                                            else\n                                                                                if <(Level) = [20]> then\n                                                                                    go to x: (208) y: (-111)\n                                                                                else\n                                                                                    if <(Level) = [21]> then\n                                                                                        go to x: (203) y: (-55)\n                                                                                    else\n                                                                                        if <(Level) = [22]> then\n                                                                                            go to x: (208) y: (-85)\n                                                                                        else\n                                                                                            if <(Level) = [23]> then\n                                                                                                go to x: (209) y: (-85)\n                                                                                            else\n                                                                                                if <(Level) = [24]> then\n                                                                                                    go to x: (206) y: (-110)\n                                                                                                else\n                                                                                                    if <(Level) = [25]> then\n                                                                                                        go to x: (209) y: (-65)\n                                                                                                    else\n                                                                                                        if <(Level) = [26]> then\n                                                                                                            go to x: (209) y: (-65)\n                                                                                                        else\n                                                                                                            if <(Level) = [27]> then\n                                                                                                                hide\n                                                                                                            else\n                                                                                                                if <(Level) = [28]> then\n                                                                                                                    hide\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nhide\n\ngo to x: (201) y: (-68)\n\ngo to x: (209) y: (-65)\n\n@Levels\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (36) y: (28)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen I receive [end v]\nhide\n\n@Umbrella\n\nwhen flag clicked\nhide\ngo to x: (93) y: (-45)\nforever\n    if <(Level) = [1]> then\n        hide\n    else\n        if <(Level) = [2]> then\n            hide\n        else\n            if <(Level) = [3]> then\n                hide\n            else\n                if <(Level) = [4]> then\n                    hide\n                else\n                    if <(Level) = [5]> then\n                        hide\n                    else\n                        if <(Level) = [6]> then\n                            hide\n                        else\n                            if <(Level) = [7]> then\n                                hide\n                            else\n                                if <(Level) = [8]> then\n                                    hide\n                                else\n                                    if <(Level) = [9]> then\n                                        hide\n                                    else\n                                        if <(Level) = [10]> then\n                                            hide\n                                        else\n                                            if <(Level) = [11]> then\n                                                hide\n                                            else\n                                                if <(Level) = [12]> then\n                                                    hide\n                                                else\n                                                    if <(Level) = [13]> then\n                                                        hide\n                                                    else\n                                                        if <(Level) = [14]> then\n                                                            hide\n                                                        else\n                                                            if <(Level) = [15]> then\n                                                                hide\n                                                            else\n                                                                if <(Level) = [16]> then\n                                                                    hide\n                                                                else\n                                                                    if <(Level) = [17]> then\n                                                                        hide\n                                                                    else\n                                                                        if <(Level) = [18]> then\n                                                                            hide\n                                                                        else\n                                                                            if <(Level) = [19]> then\n                                                                                wait (1.5) seconds\n                                                                                show\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nwait until <(Level) = [19]>\nwait (1.5) seconds\nshow\nstart sound [Collect v]\nforever\n    go to (totoro v)\nend\n\nshow\n\n@coh-removebg-preview\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\nwait (1.5) seconds\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\nhide\n\n