~Blossom~ A Platformer


@Stage\n\n@player\n\ndefine Physics\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    switch costume to (costume1 v)\n    change [xmovement v] by (2)\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (costume2 v)\n        change [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#ffffff)?> then\n    change y by (1)\nend\nif <touching color (#ffffff)?> then\n    change y by (1)\nend\nif <touching color (#ffffff)?> then\n    change y by (1)\nend\nif <touching (sprite1 v)?> then\n    change y by (1)\nend\nif <touching color (#ffffff)?> then\n    change x by ((Xmovement) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#ffffff)?> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching color (#ffffff)?>> then\n    set [yv v] to [15]\nend\nif <(x position) > [239]> then\n    broadcast (next level v)\nend\nif <(y position) < [-179]> then\n    go to x: (-207) y: (-112)\nend\nif <touching color (#ff8080)?> then\n    set [yv v] to [26]\nend\nif <touching color (#f5a3a3)?> then\n    set [yv v] to [26]\nend\nif <touching color (#ff0000)?> then\n    go to x: (-207) y: (-112)\nend\n\nif <touching (lava v)?> then\n    go to x: (-207) y: (-112)\nend\n\nwhen I receive [next level v]\nset [yv v] to [0]\ngo to x: (-207) y: (-112)\n\nwhen I receive [restart v]\nset [yv v] to [0]\ngo to x: (-207) y: (-112)\n\nwhen I receive [kid_1018 v]\nswitch costume to (costume1 v)\npoint in direction (90)\nshow\npoint in direction (90)\ngo to [front v] layer\nset [yv v] to [0]\ngo to x: (-207) y: (-112)\nset size to (20) %\nforever\n    Physics\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (pick random (1) to (30)) %\nset [ghost v] effect to (pick random (20) to (70))\ngo to x: (500) y: (pick random (20) to (180))\nglide (pick random (1.07) to (5)) secs to x: (-240) y: (pick random (-100) to (180))\nrepeat (10)\n    change [ghost v] effect by (0)\nend\ndelete this clone\n\nwhen flag clicked\nhide\nwait (0.03) seconds\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen I receive [kid_1018 v]\nshow\n\nwhen flag clicked\nhide\n\n@Tree\n\nwhen flag clicked\ngo to x: (-130) y: (-17)\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\n\n@Leaves\n\nwhen flag clicked\nhide\nforever\n    go to (tree v)\n    change x by (pick random (-10) to (80))\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nrepeat until <(y position) < [-100]>\n    turn right (pick random (5) to (15)) degrees\n    change y by (pick random (-2) to (-1))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [kid_1018 v]\nshow\n\nwhen flag clicked\nhide\n\n@Tree2\n\nwhen flag clicked\ngo to x: (142) y: (-22)\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\n\n@Leaves2\n\nwhen flag clicked\nhide\nforever\n    go to (tree2 v)\n    change x by (pick random (70) to (80))\n    switch costume to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3)) seconds\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nrepeat until <(y position) < [-100]>\n    turn right (pick random (5) to (15)) degrees\n    change y by (pick random (-2) to (-1))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [kid_1018 v]\nshow\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [13]> then\n    broadcast (h v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\nswitch costume to (costume1 v)\n\n@music\n\nwhen flag clicked\nplay sound [Ji-Eun's Sunset v] until done\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwait (0.1) seconds\n\nwhen I receive [kid_1018 v]\ngo to x: (-2) y: (112)\ngo to [front v] layer\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [kid_1018 v]\nshow\n\ngo to [front v] layer\n\nshow\n\n@hallenichole\n\nwhen I start as a clone\nif <(CloneType) = [1]> then\n    go to [front v] layer\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole1 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [2]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole2 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [3]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole3 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [4]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole4 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [5]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole5 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [6]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole6 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [7]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole7 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [8]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole8 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\nif <(CloneType) = [9]> then\n    show\n    go to x: (200) y: (0)\n    switch costume to (hallenichole9 v)\n    set [ghost v] effect to (100)\n    set size to (150) %\n    point in direction (0)\n    repeat (50)\n        change x by ((0) - ((x position) * (0.3)))\n        turn right (((90) - (direction)) / (8)) degrees\n        change size by (((100) - (size)) / (8))\n        change [ghost v] effect by (-4)\n    end\nend\n\nwhen I start as a clone\nwait until <(timer) > [5]>\nif <(CloneType) = [9]> then\n    repeat (10)\n        change x by ((2) + ((x position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nelse\n    repeat (10)\n        change y by ((2) + ((y position) * (0.3)))\n        change [ghost v] effect by (10)\n    end\nend\nhide\nbroadcast (kid_1018 v)\ndelete this clone\n\nwhen flag clicked\nset [clonetype v] to [0]\nshow\ngo to x: (0) y: (0)\nswitch costume to (hallenicholefull v)\nset [ghost v] effect to (100)\nset size to (100) %\npoint in direction (0)\n\nwhen flag clicked\nswitch costume to (hallenicholefull v)\nset [clonetype v] to [0]\nreset timer\nswitch backdrop to (backdrop1 v)\nrepeat (9)\n    change [clonetype v] by (1)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\n@Flying objects\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [25]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nset [turn v] to (pick random (-3) to (5))\ngo to x: (pick random (-235) to (235)) y: (-195)\nset size to (pick random (75) to (115)) %\nswitch costume to (pick random (1) to (7))\ngo [backward v] (50) layers\nshow\n\nhide\n\nwhen I receive [h v]\nshow\ngo to x: (0) y: (-195)\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nhide\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\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\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\nforever\n    go to [front v] layer\nend\n\n@lava\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\nswitch costume to (costume1 v)\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [kid_1018 v]\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\n\n