Fantasy Land | Platformer | #Games #Art #All 


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nbroadcast (go v)\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [go v]\ngo to x: (-203) y: (115)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-217) y: (-20)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume4 v)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume5 v)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#1c642a)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#1b672b)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#1b672b)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#1b672b)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#1c642a)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<touching color (#1c642a)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <<touching color (#1b652a)?> or <<touching color (#3d2c18)?> or <touching color (#deceff)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#53ddca)?> then\n        go to x: (-217) y: (-20)\n        broadcast (oof v)\n    end\n    if <(x position) > [228]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n        broadcast (new lvl v)\n    end\nend\n\nwhen [left arrow v] key pressed\nswitch costume to (costume2 v)\n\nwhen [right arrow v] key pressed\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (shrooms  v)?> then\n        broadcast (collect  v)\n    else\n        wait until <touching (shrooms  v)?>\n    end\nend\n\n@shrooms \n\nwhen flag clicked\nshow\ngo to x: (0) y: (-123)\nset [score v] to [0]\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [2]> then\n        go to x: (-10) y: (-1)\n    else\n        wait until <(backdrop [number v]) = [2]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [3]> then\n        go to x: (-75) y: (-50)\n    else\n        wait until <(backdrop [number v]) = [3]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [4]> then\n        go to x: (81) y: (-74)\n    else\n        wait until <(backdrop [number v]) = [4]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [5]> then\n        go to x: (0) y: (38)\n    else\n        wait until <(backdrop [number v]) = [5]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [6]> then\n        go to x: (-40) y: (-123)\n    else\n        wait until <(backdrop [number v]) = [6]>\n    end\nend\n\nwhen I receive [collect  v]\nhide\n\nwhen flag clicked\nwait (0.5) seconds\nshow\n\nwhen I receive [collect  v]\nstart sound [Suction Cup v]\nchange [score v] by (1)\n\nwhen I receive [new lvl v]\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [7]> then\n        go to x: (148) y: (-84)\n    else\n        wait until <(backdrop [number v]) = [7]>\n    end\nend\n\nwhen I receive [new lvl v]\nif <(backdrop [number v]) = [5]> then\n    show\nelse\n    wait until <(backdrop [number v]) = [5]>\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [8]> then\n        go to x: (22) y: (-49)\n    else\n        wait until <(backdrop [number v]) = [8]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        hide\n        broadcast (woo v)\n    else\n        wait until <(backdrop [number v]) = [11]>\n    end\nend\n\nwhen I receive [go v]\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        go to x: (-42) y: (29)\n    else\n        wait until <(backdrop [number v]) = [9]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [10]> then\n        go to x: (57) y: (39)\n    else\n        wait until <(backdrop [number v]) = [10]>\n    end\nend\n\n@end\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [woo v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [woo v]\nif <(score) > [9]> then\n    switch costume to (costume2 v)\nend\n\nwhen I receive [woo v]\nif <(score) < [10]> then\n    switch costume to (costume1 v)\nend\n\nwhen I receive [go v]\nhide\n\n@thumbnail \n\nwhen flag clicked\nreset timer\nhide\ngo to x: (0) y: (-480)\nforever\n    set [timer v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (timer)\nset size to (100) %\nshow\ngo to [front v] layer\nrepeat until <(round (y position)) = [0]>\n    change y by (((0) - (y position)) / (5))\nend\nset y to (0)\n\n@music/mute\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    set [mute v] to [Yes]\n    set volume to (0) %\n    switch costume to (costume2 v)\n    stop all sounds\nelse\n    set [mute v] to [No]\n    switch costume to (costume1 v)\n    set volume to (100) %\nend\n\nwhen flag clicked\nset [mute v] to [No]\nswitch costume to (costume1 v)\nforever\n    if <(Mute) = [No]> then\n        play sound [Floating Lands v] until done\n    end\nend\n\n@pop up\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nrepeat (100)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [new lvl v]\nhide\n\n