grassland - a platformer v1.24

Instructions: v1.10 bugs found and fixed (dying from crystals that supposed to move u to net level)\nv1.11 decreased jump height\nv1.12 added more levels\nv1.13 changed so you don't slide into the lava in level 7 \nv1.14 changed death animation\nv1.15 found a glitch were u fall through the ground and now fixed as it was from the cloning trail\nv1.16 added new trail\nv1.17 removed the trail as it made u go in the ground changed character and new spike texture\nv1.18 inverted character skin and changed music\nv1.19 changed music again so yea it sounds better\nv1.20 added a new level\nv1.21 added thumbnail\nv1.22 added new lava texture\nv1.23 changed music again

@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\n\n@less lag\n\n@thumbnailblank\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n@player\n\nwhen flag clicked\nset [spin v] to [90]\nhide variable [deaths v]\nhide variable [x v]\nhide variable [y v]\nhide variable [level number v]\nswitch costume to (costume1 v)\nshow\ngo to x: (-217) y: (-50)\nsay [hello there] for (1) seconds\nset [deaths v] to [0]\nset [level number v] to [0]\nshow variable [deaths v]\nshow variable [level number v]\nhide variable [x v]\nhide variable [y v]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<<touching color (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>> 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 [15]\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 (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>> 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 (#19ff1e)?> or <touching color (#96483c)?>> or <touching color (#9f9f9f)?>>> then\n        set [y v] to [13]\n    end\n    if <<<touching (spikes v)?> or <(y position) < [-170]>> or <<touching color (#ff0000)?> or <touching (lava v)?>>> then\n        repeat (24)\n            change [ghost v] effect by (5)\n            change size by (-2)\n        end\n        set [ghost v] effect to (0)\n        change [deaths v] by (1)\n        position\n    end\n    if <<touching (crystal v)?> or <(x position) > [238]>> then\n        next backdrop\n        position\n    end\n    if <touching (portal v)?> then\n        go to (portal2 v)\n    end\n    if <touching (portal3 v)?> then\n        go to (portal4 v)\n    end\n    if <touching color (#7919ff)?> then\n        set [y v] to [25]\n    end\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (5)\nend\n\ndefine position\nset size to (50) %\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    go to x: (-233) y: (50)\nend\nif <([backdrop # v] of [_stage_ v]) = [2]> then\n    go to x: (-200) y: (50)\nend\nif <([backdrop # v] of [_stage_ v]) = [3]> then\n    go to x: (-200) y: (130)\nend\nif <([backdrop # v] of [_stage_ v]) = [4]> then\n    go to x: (-200) y: (-80)\nend\nif <([backdrop # v] of [_stage_ v]) = [5]> then\n    go to x: (-200) y: (-60)\nend\nif <([backdrop # v] of [_stage_ v]) = [6]> then\n    go to x: (-200) y: (-40)\nend\nif <([backdrop # v] of [_stage_ v]) = [7]> then\n    go to x: (-200) y: (-40)\nend\nif <([backdrop # v] of [_stage_ v]) = [8]> then\n    go to x: (-200) y: (70)\nend\nif <([backdrop # v] of [_stage_ v]) = [9]> then\n    go to x: (-200) y: (-90)\nend\nif <([backdrop # v] of [_stage_ v]) = [10]> then\n    go to x: (-170) y: (-50)\nend\nif <([backdrop # v] of [_stage_ v]) = [11]> then\n    go to x: (-200) y: (-80)\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (-200) y: (-80)\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    go to x: (-200) y: (-80)\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    go to x: (-200) y: (-90)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    go to x: (-200) y: (-70)\nend\nif <([backdrop # v] of [_stage_ v]) = [16]> then\n    go to x: (-200) y: (-90)\nend\nif <([backdrop # v] of [_stage_ v]) = [17]> then\n    go to x: (-200) y: (-80)\nend\nif <([backdrop # v] of [_stage_ v]) = [18]> then\n    go to x: (-200) y: (-100)\nend\nif <([backdrop # v] of [_stage_ v]) = [19]> then\n    go to x: (-200) y: (-80)\nend\n\nwhen flag clicked\nforever\n    set [level number v] to ([backdrop # v] of [_stage_ v])\nend\n\nwhen flag clicked\nforever\n    if <<(username) = [km568030]> or <(username) = [Pizza8642]>> then\n        set [deaths v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n        end\n        if <key (space v) pressed?> then\n            next backdrop\n            position\n            wait (1) seconds\n        end\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nhide\nset size to (30) %\nforever\n    if <([backdrop # v] of [_stage_ v]) = [0]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [1]> then\n        hide\n        go to x: (28) y: (-84)\n    end\n    if <([backdrop # v] of [_stage_ v]) = [2]> then\n        switch costume to (costume1 v)\n        show\n    end\n    if <([backdrop # v] of [_stage_ v]) = [3]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [4]> then\n        show\n        switch costume to (costume2 v)\n        go to x: (28) y: (-45)\n    end\n    if <([backdrop # v] of [_stage_ v]) = [5]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [6]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [7]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [8]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [9]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [10]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [11]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [12]> then\n        switch costume to (costume3 v)\n        show\n        go to x: (16) y: (-57)\n    end\n    if <([backdrop # v] of [_stage_ v]) = [13]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [14]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [15]> then\n        hide\n    end\n    if <([backdrop # v] of [_stage_ v]) = [16]> then\n        show\n        go to x: (11) y: (85)\n        switch costume to (costume4 v)\n    end\n    if <([backdrop # v] of [_stage_ v]) = [17]> then\n        hide\n    end\nend\n\n@Crystal\n\nwhen flag clicked\nforever\n    change [color v] effect by (5)\nend\n\ndefine position\nif <([backdrop # v] of [_stage_ v]) = [0]> then\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    show\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [2]> then\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [3]> then\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [4]> then\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [5]> then\n    go to x: (216) y: (-79)\nend\nif <([backdrop # v] of [_stage_ v]) = [6]> then\n    go to x: (216) y: (-9)\nend\nif <([backdrop # v] of [_stage_ v]) = [7]> then\n    go to x: (216) y: (-9)\nend\nif <([backdrop # v] of [_stage_ v]) = [8]> then\n    go to x: (216) y: (-120)\nend\nif <([backdrop # v] of [_stage_ v]) = [9]> then\n    go to x: (-195) y: (145)\nend\nif <([backdrop # v] of [_stage_ v]) = [10]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [11]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (216) y: (65)\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [16]> then\n    go to x: (216) y: (-85)\nend\nif <([backdrop # v] of [_stage_ v]) = [17]> then\n    go to x: (205) y: (145)\nend\nif <([backdrop # v] of [_stage_ v]) = [18]> then\n    go to x: (205) y: (-100)\nend\nif <([backdrop # v] of [_stage_ v]) = [19]> then\n    hide\nend\n\nwhen flag clicked\nforever\n    position\nend\n\n@music\n\nwhen flag clicked\nforever\n    play sound [music for km v] until done\nend\n\n@portal\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\nforever\n    postion\nend\n\ndefine postion\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [11]> then\n    show\n    go to x: (-79) y: (79)\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (-75) y: (-27)\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    show\n    go to x: (-83) y: (-69)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    hide\nend\n\n@portal2\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\nforever\n    postion\nend\n\ndefine postion\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [11]> then\n    show\n    go to x: (79) y: (79)\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (96) y: (-27)\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    show\n    go to x: (69) y: (120)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    hide\nend\n\n@portal3\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\nforever\n    postion\nend\n\ndefine postion\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (195) y: (-53)\n    show\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    show\n    go to x: (169) y: (120)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    hide\nend\n\n@portal4\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\nforever\n    postion\nend\n\ndefine postion\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [12]> then\n    go to x: (-204) y: (96)\n    show\nend\nif <([backdrop # v] of [_stage_ v]) = [13]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [14]> then\n    show\n    go to x: (60) y: (-69)\nend\nif <([backdrop # v] of [_stage_ v]) = [15]> then\n    hide\nend\n\n@love, fave and follow\n\nwhen flag clicked\nhide\nforever\n    hide\n    go to x: (100) y: (200)\n    wait (30) seconds\n    show\n    glide (0.5) secs to x: (100) y: (150)\n    wait (3) seconds\n    glide (0.5) secs to x: (100) y: (200)\nend\n\n@lava\n\nwhen flag clicked\nhide\nset size to (110) %\nswitch costume to (lava v)\ngo to x: (98) y: (-160)\nforever\n    position\nend\n\ndefine position\nif <([backdrop # v] of [_stage_ v]) = [1]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [5]> then\n    show\n    switch costume to (lava v)\nend\nif <([backdrop # v] of [_stage_ v]) = [6]> then\n    switch costume to (lava2 v)\nend\nif <([backdrop # v] of [_stage_ v]) = [7]> then\n    hide\nend\nif <([backdrop # v] of [_stage_ v]) = [10]> then\n    show\n    switch costume to (lava3 v)\nend\nif <([backdrop # v] of [_stage_ v]) = [11]> then\n    hide\nend\n\nwhen flag clicked\nforever\n    repeat (30)\n        change y by (0.4)\n    end\n    repeat (30)\n        change y by (-0.4)\n    end\nend\n\n