platformer
@Stage\n\nwhen I receive [start v]\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\nplay sound [Alan Walker - Force v] until done\nwait (1) seconds\n\n@Player\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [start v]\ngo to [front v] layer\nset [cl v] to [0]\nset [xvelocity v] to [0]\nset [yvelocity v] to [0]\nshow\nswitch costume to (player v)\nbroadcast (Tick v)\n\ndefine Tick\nset size to (120) %\nswitch costume to (player v)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > ((x position) + (20))>>>> then\n    switch costume to (player right v)\n    change [xvelocity v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < ((x position) - (20))>>>> then\n    switch costume to (player left v)\n    change [xvelocity v] by (-1)\nend\nset [xvelocity v] to ((XVelocity) * (0.9))\nchange x by (XVelocity)\nif <touching color (#00ff3a)?> then\n    change y by (1)\n    if <touching color (#00ff3a)?> then\n        change y by (1)\n        if <touching color (#00ff39)?> then\n            change y by (1)\n            if <touching color (#00ff3a)?> then\n                change y by (1)\n                if <touching color (#00ff3a)?> then\n                    change y by (1)\n                    if <touching color (#00ff3a)?> then\n                        change x by ((XVelocity) * (-1))\n                        change y by (-5)\n                        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(XVelocity) > [0]> then\n                                set [xvelocity v] to [-11]\n                            else\n                                set [xvelocity v] to [11]\n                            end\n                            set [yvelocity v] to [16]\n                        else\n                            set [xvelocity v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yvelocity v] by (-1)\nchange y by (YVelocity)\nif <touching color (#00ff3a)?> then\n    change y by ((YVelocity) * (-1))\n    set [yvelocity v] to [0]\nend\nchange y by (-1)\nif <touching color (#00ff3a)?> then\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yvelocity v] to [16]\n    end\nend\nchange y by (1)\nif <<touching color (#ff0000)?> or <(Scroll Y) > [1200]>> then\n    start sound [Die Sound effect v]\n    set [scroll x v] to [0]\n    set [scroll y v] to [0]\n    set [yvelocity v] to [0]\n    set [xvelocity v] to [0]\nend\nchange [scroll x v] by ((x position) * (-1))\nchange [scroll y v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching color (#00b3ff)?> then\n    repeat (75)\n        turn right (15) degrees\n        change size by (-0.75)\n        change [ghost v] effect by (1)\n    end\n    hide\n    broadcast (Next Level v) and wait\nend\nif <touching color (#f9ff00)?> then\n    set [yvelocity v] to [26]\nend\n\nwhen I receive [tick v]\ngo [backward v] (29) layers\nforever\n    Tick\nend\n\nwhen I start as a clone\nset [cl v] to [1]\nset [trail v] to (Scroll X)\nset [trail2 v] to (Scroll Y)\nswitch costume to (costume3 v)\nset [ghost v] effect to (22)\nrepeat (10)\n    show\n    change [ghost v] effect by (3)\n    change size by (-10)\n    set x to ((Scroll X) - (Trail))\n    set y to ((Scroll Y) - (Trail2))\nend\ndelete this clone\n\nwhen I receive [start v]\npoint in direction (90)\nforever\n    wait (0.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next level v]\npoint in direction (90)\nshow\nclear graphic effects\nset size to (120) %\n\nwhen I receive [reset v]\nstart sound [Die Sound effect v]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [yvelocity v] to [0]\nset [xvelocity v] to [0]\n\nstart sound [portal v]\n\n@Start Button\n\nwhen this sprite clicked\nplay sound [pop v] until done\nchange [ghost v] effect by (50)\nwait (0.1) seconds\nhide\nbroadcast (Start v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\nend\n\n@Sprite1\n\nwhen I receive [next level v]\nPosition\nnext costume\n\nwhen I receive [start v]\ngo to [front v] layer\nshow\nswitch costume to (costume1 v)\nswitch costume to (level 1 v)\nPosition\nforever\n    go to x: (Scroll X) y: (Scroll Y)\nend\n\nwhen I receive [restart v]\nPosition\n\ndefine Position\nset [scroll x v] to [263]\nset [scroll y v] to [179]\n\nwhen flag clicked\nhide\n\nwhen I receive [reset v]\nset [scroll x v] to [263]\nset [scroll y v] to [179]\n\n@Sprite2\n\nwhen this sprite clicked\nbroadcast (reset v)\n\nwhen flag clicked\ngo to [front v] layer\n\n@presentazione\n\nwhen flag clicked\nforever\n    change [ghost v] effect by (1)\nend\n\n@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\nset [my variable v] to [1]\nwait (8) seconds\nset [my variable v] to [0]\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\nset [my variable v] to [0]\n\nwhen flag clicked\nforever\n    if <(my variable) = [1]> then\n        wait (1) seconds\n        go to x: (0) y: (0)\n        show\n        reset timer\n        switch costume to (pick random (1) to (4))\n        set [ghost v] effect to (100)\n        repeat until <(timer) > [3.5]>\n            change y by ((y position) / (-15))\n            change [ghost v] effect by (-3)\n        end\n        reset timer\n        repeat until <(timer) > [3.5]>\n            change y by (((y position) - (-100)) / (-15))\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (20) to (30)) seconds\n        switch costume to (costume1 v)\n        go to x: (45) y: (85)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n
arrows to move or wasd or space to jump  do not touch lava or spikes mobile touch screen  wait fix bug...