Axolotl Platformer
@Stage\n\nwhen I receive [start game v]\nswitch backdrop to (backdrop1 v) and wait\n\nwhen flag clicked\nswitch backdrop to (axolotlocean v) and wait\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(x position) > [200]> then\n        broadcast (Next Level v)\n        go to x: (-194) y: (-43)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-194) y: (-43)\n    end\nend\n\nwhen I receive [start game v]\nset [level v] to [0]\ngo to x: (-194) y: (-43)\nset [damage v] to [0]\nswitch costume to (psx_axolotl v)\nwait (0.000001) seconds\ngo to [back v] layer\nshow\nforever\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change x by (-10)\n        switch costume to (costume1 v)\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change x by (10)\n        switch costume to (psx_axolotl v)\n    end\n    if <touching (ground v)?> then\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [gravity v] to [-6]\n            change [gravity v] by (15)\n            change y by (15)\n        end\n    end\n    if <not <touching (ground v)?>> then\n        change y by (Gravity)\n        change [gravity v] by (-1)\n    end\n    if <<touching (first v)?> or <<touching (1 v)?> or <<touching (2 v)?> or <<touching (forestfirecriminal v)?> or <touching (sprite5 v)?>>>>> then\n        go to x: (-194) y: (-43)\n        broadcast (Go Back v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@ground\n\nwhen I receive [next level v]\nif <(Level) = [1]> then\n    go to x: (11) y: (-151)\n    switch costume to (costume2 v)\nend\nif <(Level) = [2]> then\n    go to x: (11) y: (-151)\n    switch costume to (costume1 v)\nend\nif <(Level) = [3]> then\n    switch costume to (costume3 v)\nend\nif <(Level) = [4]> then\n    switch costume to (costume1 v)\nend\nif <(Level) = [5]> then\n    set [weapon v] to [1]\nend\nif <(Level) = [9]> then\n    switch costume to (costume4 v)\nend\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\ngo to [back v] layer\nshow\n\nwhen flag clicked\nhide\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(Level) = [1]> then\n    go to x: (56) y: (-116)\n    show\n    switch costume to (costume1 v)\nend\nif <(Level) = [2]> then\n    go to x: (61) y: (-58)\n    switch costume to (costume2 v)\nend\nif <(Level) = [3]> then\n    go to x: (-12) y: (-42)\n    switch costume to (costume3 v)\nend\nif <(Level) = [4]> then\n    go to x: (-12) y: (-42)\n    switch costume to (costume4 v)\nend\nif <(Level) = [5]> then\n    show\n    go to x: (194) y: (-5)\n    switch costume to (costume5 v)\nend\nif <(Level) = [6]> then\n    show\n    go to x: (194) y: (-5)\n    switch costume to (costume5 v)\nend\n\nwhen flag clicked\nset [spike hide v] to [0]\nforever\n    if <(spike hide) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [hide spike v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\npoint in direction (90)\nset [weapon v] to [0]\nset [stop fish v] to [0]\nforever\n    go to (sprite1 v)\nend\n\nwhen [space v] key pressed\nif <(Stop fish) = [0]> then\n    if <(Weapon) = [1]> then\n        show\n        repeat (24)\n            turn right (15) degrees\n        end\n        hide\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (first v)?> then\n        set [hellish v] to [1]\n        set [spike hide v] to [1]\n        wait (1) seconds\n        set [hellish v] to [0]\n        set [spike hide v] to [0]\n    end\n    if <touching (1 v)?> then\n        broadcast (Kill v)\n    end\n    if <touching (2 v)?> then\n        broadcast (kill2 v)\n    end\nend\n\n@First\n\nwhen flag clicked\nhide\nset [hellish v] to [0]\nforever\n    if <(Hellish) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [next level v]\nif <(Level) = [5]> then\n    go to x: (198) y: (-35)\n    show\n    switch costume to (costume1 v)\n    repeat until <(Hellish) = [1]>\n        glide (2) secs to x: (-188) y: (-36)\n        switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n        glide (2) secs to x: (198) y: (-36)\n        switch costume to (costume1 v)\n    end\nend\nif <(Level) > [6]> then\n    hide\nend\n\nwhen I receive [go back v]\ngo to x: (198) y: (-35)\nrepeat until <(Hellish) = [1]>\n    glide (2) secs to x: (-188) y: (-36)\n    switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n    glide (2) secs to x: (198) y: (-36)\n    switch costume to (costume1 v)\nend\n\n@1\n\nwhen I receive [next level v]\nif <(Level) = [6]> then\n    show\n    forever\n        glide (2) secs to x: (-188) y: (-36)\n        switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n        glide (2) secs to x: (198) y: (-36)\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [kill v]\nhide\nchange [spike v] by (1)\nif <(spike) = [2]> then\n    broadcast (Hide Spike v)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (-194) y: (-36)\n\nwhen I receive [go back v]\ngo to x: (-194) y: (-36)\nforever\n    glide (2) secs to x: (-188) y: (-36)\n    switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n    glide (2) secs to x: (198) y: (-36)\n    switch costume to (costume1 v)\nend\n\n@2\n\nwhen I receive [next level v]\nif <(Level) = [6]> then\n    wait (1) seconds\n    show\n    forever\n        glide (2) secs to x: (-188) y: (-36)\n        switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n        glide (2) secs to x: (198) y: (-36)\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [kill2 v]\nhide\nchange [spike v] by (1)\nif <(spike) = [2]> then\n    broadcast (Hide Spike v)\nend\n\nwhen flag clicked\nset [spike v] to [0]\n\nwhen I receive [go back v]\ngo to x: (-194) y: (-36)\nforever\n    glide (2) secs to x: (-188) y: (-36)\n    switch costume to (hellish_axolotl\(pet_simulator_x\) v)\n    glide (2) secs to x: (198) y: (-36)\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\ngo to x: (-194) y: (-36)\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [8]> then\n        show\n        set [stop fish v] to [1]\n        set [arrow v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    go to (sprite1 v)\n    point towards (mouse-pointer v)\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\nset [arrow v] to [0]\nset [damage v] to [0]\n\nwhen [space v] key pressed\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to (sprite1 v)\nhide\nforever\n    if <key (space v) pressed?> then\n        if <(arrow) = [1]> then\n            show\n            go to (sprite3 v)\n            point towards (mouse-pointer v)\n            repeat (25)\n                move (10) steps\n            end\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (forestfirecriminal v)?> then\n        hide\n        change [damage v] by (1)\n        if <[49] < (damage)> then\n            broadcast (End Game v)\n        end\n    end\nend\n\n@ForestFireCriminal\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [8]> then\n        show\n        set [worlds v] to [0]\n        forever\n            glide (1) secs to (random position v)\n        end\n    end\nend\n\nwhen I receive [end game v]\nif <(damage) > [899]> then\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    stop [other scripts in sprite v]\nend\n\n@Nature\n\nwhen flag clicked\nswitch costume to (axolotlocean v)\ngo to [front v] layer\nrepeat (4)\n    set [ghost v] effect to (0)\n    wait (2) seconds\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    next costume\nend\nbroadcast (Start Game v)\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(Level) = [8]> then\n    forever\n        wait (1) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to (forestfirecriminal v)\npoint towards (sprite1 v)\nshow\nglide (1) secs to (sprite1 v)\nhide\n\nwhen I start as a clone\nforever\n    if <touching (sprite1 v)?> then\n        hide\n        broadcast (Go Back v)\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nset [worlds v] to [1]\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [next level v]\nif <(worlds) = [1]> then\n    next costume\nend\nif <(Level) = [9]> then\n    hide\nend\n\n@Fancy_axolotl_%28Pet_Simulator_X%29\n\nwhen I receive [next level v]\nif <(Level) = [8]> then\n    go to x: (134) y: (103)\n    show\nend\nif <(Level) = [9]> then\n    hide\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\n@Sprite7\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
Heart/Star