Joy-A platformer

Instructions: My first ever platformer\nHello there and welcome to JOY a platformer!\nArrow keys to move and don't forget to leave a like and fav! Avoid lava, spikes\nRotation cube added\nPortals added\nInvisible, rainbow and moving spikes added!\nENJOY!\nFull screen recommended

@Stage\n\nwhen flag clicked\nswitch backdrop to (blue v)\nforever\n    play sound [bensound-buddy.mp3 v] until done\nend\n\nwhen backdrop switches to [blue11 v]\nbroadcast (outro v)\n\n@Blobby\n\nwhen flag clicked\nhide\ngo to x: (-196) y: (110)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform Gravity: [-1] Jump Height: [15] Side Movement Speed: [3] Friction: [.72] Slope: [8]\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side Movement Speed: (side movement) Friction: (friction) Slope: (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<key (up arrow v) pressed?> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<key (left arrow v) pressed?> * ((side movement) * (-1))) + (<key (right arrow v) pressed?> * (side movement)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\nif <touching (next level v)?> then\n    go to x: (-196) y: (70)\n    next backdrop\nend\nif <touching (lava v)?> then\n    go to x: (-196) y: (70)\nend\nif <touching (spike v)?> then\n    go to x: (-196) y: (70)\nend\nif <touching (spike2 v)?> then\n    go to x: (-196) y: (70)\nend\nif <touching (jump pad v)?> then\n    change [y velocity v] by (20)\nend\nif <touching (portal 1 v)?> then\n    go to x: (130) y: (-51)\nend\nif <touching (portal 2 v)?> then\n    go to x: (-103) y: (-45)\nend\nif <touching (gravity flick v)?> then\n    broadcast (message1 v)\nend\nif <touching (spike3 v)?> then\n    go to x: (-196) y: (70)\nend\nif <touching (spike4 v)?> then\n    go to x: (-196) y: (70)\nend\nif <touching (sprite1 v)?> then\n    go to x: (-196) y: (70)\nend\n\nwhen backdrop switches to [blue v]\nshow\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-7) y: (-40)\n\nwhen backdrop switches to [blue2 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [blue v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [blue3 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [blue4 v]\nswitch costume to (costume4 v)\n\nwhen backdrop switches to [blue5 v]\nswitch costume to (costume5 v)\n\nwhen backdrop switches to [blue6 v]\nswitch costume to (costume6 v)\n\nwhen backdrop switches to [blue7 v]\nswitch costume to (costume7 v)\n\nwhen I receive [message1 v]\nturn right (40) degrees\n\nwhen flag clicked\npoint in direction (90)\n\nwhen backdrop switches to [blue9 v]\nswitch costume to (costume8 v)\n\nwhen backdrop switches to [blue9 v]\npoint in direction (90)\n\nwhen backdrop switches to [blue10 v]\npoint in direction (90)\n\nwhen backdrop switches to [blue10 v]\nswitch costume to (costume8 v)\n\nwhen backdrop switches to [blue11 v]\nswitch costume to (costume1 v)\n\nwhen I receive [outro v]\nswitch backdrop to (blue12 v)\n\n@sun\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (100) %\nswitch costume to (fantasia2 v)\nset [ghost v] effect to (50)\nforever\n    repeat (45)\n        change size by (0.5)\n    end\n    repeat (45)\n        change size by (-0.5)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to [back v] layer\nswitch costume to (fantasia1 v)\ncreate clone of (_myself_ v)\nchange [ghost v] effect by (5)\n\n@Spots\n\nwhen flag clicked\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (5))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (20) to (40))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen [timer v] > (Timer)\nhide\n\n@Next level\n\nwhen flag clicked\nswitch backdrop to (blue v)\ngo to x: (36) y: (28)\n\n@Lava\n\nwhen flag clicked\nhide\ngo to x: (-13) y: (-86)\n\nwhen backdrop switches to [blue2 v]\ngo to x: (-13) y: (-86)\nshow\nrepeat (3)\n    glide (1) secs to x: (-13) y: (-39)\n    glide (1) secs to x: (-13) y: (-86)\nend\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue6 v]\ngo to x: (218) y: (-86)\nshow\n\nwhen backdrop switches to [blue7 v]\nhide\n\n@Spike\n\nwhen flag clicked\nhide\ngo to x: (-30) y: (15)\nforever\n    change [color v] effect by (5)\nend\n\nwhen backdrop switches to [blue4 v]\nshow\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\ngo to x: (-67) y: (15)\nshow\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nshow\ngo to x: (-67) y: (15)\nchange [ghost v] effect by (100)\n\nwhen backdrop switches to [blue10 v]\ngo to x: (-67) y: (15)\nshow\n\nwhen backdrop switches to [blue10 v]\nhide\n\nwhen backdrop switches to [blue11 v]\nhide\n\n@Spike2\n\nwhen flag clicked\nhide\ngo to x: (14) y: (15)\nforever\n    change [color v] effect by (5)\nend\n\nwhen backdrop switches to [blue4 v]\nshow\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\ngo to x: (-112) y: (15)\nshow\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nshow\ngo to x: (-112) y: (15)\nchange [ghost v] effect by (100)\n\nwhen backdrop switches to [blue10 v]\ngo to x: (-112) y: (15)\n\nwhen backdrop switches to [blue10 v]\nhide\n\nwhen backdrop switches to [blue11 v]\nhide\n\n@Jump pad\n\nwhen flag clicked\nhide\ngo to x: (37) y: (-40)\n\nwhen backdrop switches to [blue5 v]\nshow\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nshow\n\nwhen backdrop switches to [blue7 v]\nhide\n\n@Portal 1\n\nwhen flag clicked\nhide\ngo to x: (-68) y: (28)\n\nwhen backdrop switches to [blue7 v]\nshow\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue8 v]\nhide\n\n@Portal 2\n\nwhen flag clicked\nhide\ngo to x: (65) y: (48)\n\nwhen backdrop switches to [blue7 v]\nshow\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue8 v]\nhide\n\n@Gravity flick\n\nwhen flag clicked\nhide\ngo to x: (-28) y: (-52)\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue8 v]\nshow\n\nwhen backdrop switches to [blue10 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nhide\n\n@Spike3\n\nwhen flag clicked\nhide\ngo to x: (-84) y: (-10)\nforever\n    change [color v] effect by (5)\nend\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nhide\n\nwhen backdrop switches to [blue10 v]\ngo to [back v] layer\nshow\nforever\n    glide (1) secs to x: (-84) y: (20)\n    glide (1) secs to x: (-84) y: (-10)\nend\n\nwhen backdrop switches to [blue11 v]\nhide\n\n@Spike4\n\nwhen flag clicked\nhide\ngo to x: (-84) y: (-10)\nforever\n    change [color v] effect by (5)\nend\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nhide\n\nwhen backdrop switches to [blue10 v]\ngo to [back v] layer\nshow\nforever\n    glide (1) secs to x: (22) y: (20)\n    glide (1) secs to x: (22) y: (-10)\nend\n\nwhen backdrop switches to [blue11 v]\nhide\n\n@Outro\n\nwhen flag clicked\ngo to x: (-46) y: (84)\nhide\n\nwhen I receive [outro v]\nshow\n\n@Thumbnail\n\nwhen backdrop switches to [blue v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen backdrop switches to [blue8 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue10 v]\nhide\n\nwhen backdrop switches to [blue11 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [blue7 v]\nhide\n\nwhen I receive [outro v]\nshow\n\nwhen backdrop switches to [blue6 v]\nhide\n\nwhen backdrop switches to [blue5 v]\nhide\n\nwhen backdrop switches to [blue3 v]\nhide\n\nwhen backdrop switches to [blue4 v]\nhide\n\nwhen backdrop switches to [blue2 v]\nhide\n\nwhen backdrop switches to [blue8 v]\nhide\n\nwhen backdrop switches to [blue9 v]\nhide\n\nwhen backdrop switches to [blue10 v]\nhide\n\nwhen backdrop switches to [blue11 v]\nhide\n\nwhen backdrop switches to [blue12 v]\nshow\n\n@cooltext357436580996974\n\nwhen flag clicked\nhide\n\n