Returning: A Platformer

Instructions: Arrow keys to move and jump\nতততততততততততততততততততততততততততততততততততত\nTry to reach the end!\nতততততততততততততততততততততততততততততততততততত\n❤ and ⭐  for RAINBOW CHARACTER!\nতততততততততততততততততততততততততততততততততততত\nYou are Glow, a small adventurer on a conquest to find the treasure you have heard rumors about. As you venture you will find secrets and pass dangerous levels as you progress on your way to finding the big prize at the end! What will happen next? Comment what you think!\nতততততততততততততততততততততততততততততততততততত\nTemplate by JoelGalaxyKing

@Stage\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    play sound [2 AM - Animal Crossing Wild World v] until done\nend\n\n@Player\n\ndefine Tick\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> then\n    change [xv v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> then\n    change [xv v] by (-1)\nend\nchange x by (Xv)\nset [xv v] to ((Xv) * (0.9))\nif <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n    change y by (1)\n    if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n        change y by (1)\n        if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n            change y by (1)\n            if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n                change y by (1)\n                if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n                    change y by (1)\n                    if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (Yv)\nif <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<touching color (#8eda65)?> or <<touching color (#dab16f)?> or <touching color (#b0b1b0)?>>> then\n        set [yv v] to [13]\n    end\nend\nif <touching color (#ff46b2)?> then\n    set [yv v] to [18]\nend\nif <<touching color (#ff3a3a)?> or <<touching color (#efefef)?> or <touching color (#e6e6e6)?>>> then\n    go to x: (-215) y: (49)\nend\nchange y by (1)\nif <touching color (#48a769)?> then\n    broadcast (YOU WIN! v)\n    go to x: (-170) y: (13)\n    hide\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\n\nwhen flag clicked\ngo to x: (-215) y: (49)\ngo to [front v] layer\nswitch costume to (costume1 v)\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen I receive [start engine v]\nforever\n    Tick\nend\n\nwhen flag clicked\nshow\nswitch costume to (normal v)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> then\n        switch costume to (left v)\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (up left v)\n    end\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (up right v)\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        switch costume to (up v)\n    end\nend\n\n@select\n\nwhen flag clicked\nhide\nforever\n    Go to mouse pointer\nend\n\ndefine Go to mouse pointer\nrepeat until <(S/T) = [S]>\n    if <(select) = [ground middle]> then\n        switch costume to (ground middle v)\n    end\n    if <(select) = [ground top]> then\n        switch costume to (ground top v)\n    end\n    if <(select) = [tree]> then\n        switch costume to (tree v)\n    end\n    if <(select) = [stone]> then\n        switch costume to (stone v)\n    end\n    if <(select) = [spikes]> then\n        switch costume to (spikes v)\n    end\n    if <(select) = [saws]> then\n        switch costume to (saws v)\n    end\n    if <(select) = [trampoline]> then\n        switch costume to (trampoline v)\n    end\n    if <(select) = [lava]> then\n        switch costume to (lava v)\n    end\n    if <(select) = [end point]> then\n        switch costume to (end point v)\n    end\n    show\n    go to (mouse-pointer v)\n    blocky effect\n    if <mouse down?> then\n        create clone of (_myself_ v)\n    end\n    if <touching (screen v)?> then\n        hide\n    else\n        show\n    end\n    set [ghost v] effect to (35)\nend\n\ndefine blocky effect\ngo to x: ((round ((x position) / (30))) * (30)) y: ((round ((y position) / (30))) * (30))\n\nwhen I receive [erase all v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (0)\n    go to [back v] layer\n    if <touching (screen v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [start engine v]\nhide\n\n@ground middle\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [ground middle]\n\nwhen I receive [start engine v]\nhide\n\n@ground top\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [ground top]\n\nwhen I receive [start engine v]\nhide\n\n@tree\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [tree]\n\nwhen I receive [start engine v]\nhide\n\n@stone\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [stone]\n\nwhen I receive [start engine v]\nhide\n\n@spikes\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [spikes]\n\nwhen I receive [start engine v]\nhide\n\n@saws\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [saws]\n\nwhen I receive [start engine v]\nhide\n\n@Trampoline\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [trampoline]\n\nwhen I receive [start engine v]\nhide\n\n@lava\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [lava]\n\nwhen I receive [start engine v]\nhide\n\n@end point\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nstart sound [recording2 v]\nset [select v] to [end point]\n\nwhen I receive [start engine v]\nhide\n\n@guide\n\nwhen I receive [start engine v]\nhide\n\nwhen this sprite clicked\nstart sound [recording2 v]\ngo to [front v] layer\nswitch costume to (snip v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\n\nwhen [c v] key pressed\nswitch costume to (costume1 v)\n\n@backdrop\n\nwhen this sprite clicked\nstart sound [recording2 v]\nnext backdrop\n\nwhen I receive [start engine v]\nhide\n\nwhen flag clicked\nshow\n\n@play?\n\nwhen flag clicked\ngo to [front v] layer\nshow\nset [s/t v] to [T]\n\nwhen this sprite clicked\nstart sound [recording2 v]\nbroadcast (Start engine v)\nset [s/t v] to [S]\nhide\n\n@screen\n\nwhen flag clicked\ngo to [back v] layer\nshow\n\nwhen I receive [start engine v]\nhide\n\nrepeat (10)\n    wait (0.1) seconds\n    change [ghost v] effect by (10)\nend\n\n@erase all\n\nwhen this sprite clicked\nbroadcast (erase all v)\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen I receive [start engine v]\nstart sound [recording2 v]\nhide\n\n@Sprite1\n\nwhen I receive [you win! v]\nshow\ngo to x: (449) y: (0)\nglide (1) secs to x: (0) y: (0)\nwait (1) seconds\nstop [all v]\n\nwhen flag clicked\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\nrepeat (10)\n    wait (0.1) seconds\n    change [ghost v] effect by (10)\nend\n\n@ideas\n\n