~Lava~//A platformer

Instructions: ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ✩Ratatouille✩\n\n❂Exploration Of All The Levels And Techniques❂\nhttps://youtu.be/Ftw2cIcItbQ\n\n✹✧Creation Story✧✹\n\nThe original Ratatouille is an animation film by Pixar.\nI wanted to recreate this in a game with a similar story.\n\n✧✹Instructions✹✧\n\n▶First of all, move with arrow keys or W,A,D.\n\n▶Press and hold the key to go higher. Very important!\n\n▶Avoid the enemies!\n\n▶Collect the vegetables and the fruit to cook a\nRatatouille.\n\n▶Astuce: Slide on the trampoline and don't jump.\n\n▶Good luck to all the players!\n\n\n✩Golden Characters Raffle Winners✩\n10 scratchers...\n\n✪10 first winners of the game✪\n@Matren33\n@yeetboiz21\n@rhb2011\n@AffinityFlip\n@quicsilves\n@PIGofDOOM\n@The_Meow_Of_The_Cat\n@random_account1738\n@T-ku\n@Nopeisback\n\n­ ­ ­­ ­ ­­ ­ ­­ ­ ­­ ­ ­­ ­ ­◎Don't hesitate to ❤️, ⭐️ and follow me◎\n­ ­ ­ ­ ­ ­ ­ ­         ­ ­ ­­ ­ ­­ ­ ­­ ­ ­­ ­ ­ ­ ­­ ­ ­  ­ ­ ­ ­ ­◎for more content.◎\n\n➯Thank you griffpatch for his scrolling engine tutorial.\nI modified and deleted some scripts to have a better maniability in my opinion.\n\n➯I failed to create my scrolling engine so I hope to succeed in the future.\n\n➯Everything else by me.\n\n➯Free Royalty Musics used in this project:\n\n▻https://youtu.be/oNnWP1WoTRQ\n▻https://youtu.be/mNLJMTRvyj8\n\n\n100k views wow! Thank you very much :D\n\n#games #ratatouille #judpomme #raffle #pixar #cool #pieges #new #trending #all #musijollycamuc #music 

@Stage\n\n@Ball\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (4)) until done\nend\n\nwhen flag clicked\ngo to x: (-200) y: (-150)\nforever\n    go to [front v] layer\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> 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 color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <(x position) > [235]> then\n        broadcast (Next Level v)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-200) y: (-150)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (-150)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#003fff)?> then\n        set [yv v] to [20]\n    end\nend\n\n@Track\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nforever\n    set [costume v] to (costume [number v])\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Words\n\nwhen flag clicked\nset [costume v] to [0]\nswitch costume to (costume1 v)\nshow\nset [var1 v] to [1]\ngo to x: (0) y: (0)\nforever\n    wait until <(Costume) > (Var1)>\n    set [var1 v] to (Costume)\n    Wait for space\n    next costume\nend\n\ndefine Wait for space\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\n\nwhen I receive [next level v]\nwait (0.02) seconds\nswitch costume to (((Costume) * (2)) - (2))\n\nwhen flag clicked\nforever\n    if <(Costume) = [1]> then\n        switch costume to (costume1 v)\n        set [var1 v] to [1]\n        wait until <not <(Costume) = [1]>>\n    end\n    if <(costume [number v]) = ((Costume) * (2))> then\n        switch costume to (((Costume) * (2)) - (1))\n    end\n    if <<(costume [number v]) = [1]> and <(Costume) = [12]>> then\n        switch costume to (costume23 v)\n    end\nend\n\n@Moving obstacles\n\nwhen I start as a clone\nif <(Clone Number) < [5]> then\n    wait until <(Costume) = [6]>\n    delete this clone\nelse\n    if <(Clone Number) = [5]> then\n        wait until <(Costume) = [9]>\n        delete this clone\n    else\n        if <(Clone Number) = [6]> then\n            wait until <(Costume) = [10]>\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nif <(Clone Number) = [1]> then\n    switch costume to (costume1 v)\n    forever\n        go to x: ((([sin v] of ((timer) * (50)) ) * (65)) - (80)) y: (-120)\n    end\nelse\n    if <(Clone Number) = [2]> then\n        switch costume to (costume1 v)\n        forever\n            go to x: ((([sin v] of (((timer) * (50)) + (30)) ) * (65)) - (80)) y: (-60)\n        end\n    else\n        if <(Clone Number) = [3]> then\n            switch costume to (costume1 v)\n            forever\n                go to x: ((([sin v] of (((timer) * (50)) + (60)) ) * (65)) - (80)) y: (0)\n            end\n        else\n            if <(Clone Number) = [4]> then\n                switch costume to (costume1 v)\n                forever\n                    go to x: ((([sin v] of (((timer) * (50)) + (90)) ) * (65)) - (80)) y: (60)\n                end\n            else\n                if <(Clone Number) = [5]> then\n                    switch costume to (costume1 v)\n                    reset timer\n                    forever\n                        go to x: ((([sin v] of (((timer) * (50)) + (90)) ) * (100)) - (-70)) y: (-114)\n                        go to [front v] layer\n                    end\n                else\n                    if <(Clone Number) = [6]> then\n                        switch costume to (costume2 v)\n                        reset timer\n                        forever\n                            go to x: (([sin v] of ((timer) * (50)) ) * (140)) y: (-70)\n                            go to [front v] layer\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [sine v] to [0]\nset [clone number v] to [0]\nset [costume v] to [0]\nhide\nwait until <(Costume) = [5]>\nrepeat (4)\n    change [clone number v] by (1)\n    create clone of (_myself_ v)\nend\nwait until <(Costume) = [8]>\nset [clone number v] to [5]\ncreate clone of (_myself_ v)\nwait until <(Costume) = [9]>\nset [clone number v] to [6]\ncreate clone of (_myself_ v)\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\n\n