Puppy Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\nset [level v] to [1]\n\nwhen I receive [didn'tialreadysaygameon?!? v]\nwait (1) seconds\nswitch backdrop to (next backdrop v)\nrepeat until <(backdrop [name v]) = [Winner!!!]>\n    play sound [RATHER BE BY CLEAN BANDIT - MUSIC BOX TRIBUTE.mp3 v] until done\nend\n\nwhen I receive [gameonnow!!!!!!!!!! v]\nswitch backdrop to (level1 v)\n\nwhen I receive [newlevel v]\nnext backdrop\nrepeat (2)\n    if <<(backdrop [number v]) = [1]> or <(backdrop [number v]) = [2]>> then\n        next backdrop\n    end\nend\nchange [level v] by (1)\n\nwhen I receive [wingame v]\nforever\n    play sound [end v] until done\nend\n\nwhen flag clicked\nwait until <(backdrop [name v]) = [Winner!!!]>\nbroadcast (wingame v)\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(backdrop [name v]) = [Winner!!!]> then\n        stop all sounds\n        stop [this script v]\n    end\nend\n\n@licky_dog_icon_by_gilly15-d541l7s\n\nwhen flag clicked\nplay sound [THIS IS IT - PaulRHJT v] until done\n\nwhen flag clicked\nset [ghost v] effect to (50)\nrepeat (50)\n    change [ghost v] effect by (-1)\n    wait (0.1) seconds\nend\nwait (2) seconds\nglide (2) secs to x: (361) y: (0)\nbroadcast (cutehappypuppies v)\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (licky_dog_icon_by_gilly15-d541l7s-0 v)\nforever\n    next costume\n    wait (0.1) seconds\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\nwait (9.5) seconds\nset size to (1) %\nshow\nrepeat (125)\n    change size by (2)\n    wait (0.01) seconds\nend\nhide\nbroadcast (Didn'tIAlreadySayGameOn?!? v)\n\n@Sprite3\n\nwhen flag clicked\nhide\nswitch costume to (play1 v)\n\nwhen I receive [didn'tialreadysaygameon?!? v]\nwait (1) seconds\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (play2 v)\n    else\n        switch costume to (play1 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (GameOnNOW!!!!!!!!!! v)\nhide\n\n@Sprite4\n\n@Pixel Heart\n\nwhen flag clicked\ngo to x: (205) y: (-62)\nhide\nforever\n    if <touching (puppy v)?> then\n        broadcast (NewLevel v)\n    end\nend\n\nwhen I receive [gameonnow!!!!!!!!!! v]\nshow\nforever\n    repeat (3)\n        next costume\n        wait (0.1) seconds\n    end\n    wait (0.1) seconds\n    repeat (2)\n        next costume\n        wait (0.1) seconds\n    end\nend\n\nturn left (15) degrees\n\nstop [other scripts in sprite v]\n\nwait (0.222) seconds\n\nwhen I receive [wingame v]\nhide\n\n@Puppy\n\nwhen I receive [gameonnow!!!!!!!!!! v]\nset [level v] to [1]\ngo to x: (-199) y: (y position)\ngo to [front v] layer\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        switch costume to (dog v)\n        move (5) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        switch costume to (dog2 v)\n        move (5) steps\n    end\n    if <touching color (#ff9999)?> then\n        go to x: (-198) y: (y position)\n    end\n    if <(backdrop [name v]) = [backdrop8]> then\n        set [y v] to [-12]\n        go to x: (-13) y: (y position)\n        broadcast (wingame v)\n        wait (1) seconds\n        hide\n        hide\n        hide\n        wait (1) seconds\n        wait (1) seconds\n        stop [other scripts in sprite v]\n        wait (1) seconds\n        stop [this script v]\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-199) y: (-37)\n\nwhen I receive [gameonnow!!!!!!!!!! v]\nset [y v] to [99]\nforever\n    if <touching color (#99ffbb)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        else\n            set [yv v] to [0]\n        end\n    else\n        set [yv v] to ((YV) - (1))\n    end\n    set [y v] to ((Y) + (YV))\n    go to x: (x position) y: (Y)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [newlevel v]\ngo to x: (-199) y: (-37)\n\ngo to [front v] layer\n\nwhen I receive [wingame v]\nhide\n\nif <touching color (#e5ccff)?> then\n    set [yv v] to [30]\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (82) y: (118)\nhide\nforever\n    if <(Level) = [9]> then\n        show\n        repeat until <(backdrop [name v]) = [Winner!!!]>\n            glide (1) secs to x: (72) y: (-122)\n            go to x: (82) y: (118)\n            wait (1) seconds\n        end\n        hide\n    else\n        hide\n    end\nend\n\n@Sprite6\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\nbroadcast (GoAwayLavaWall!!! v)\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (-3) y: (-37)\nwait (1) seconds\nforever\n    if <(backdrop [name v]) = [Level4]> then\n        show\n        broadcast (LavaHere v)\n    end\n    wait until <not <(backdrop [name v]) = [Level4]>>\n    hide\nend\n\n@Sprite7\n\nwhen I receive [goawaylavawall!!! v]\nhide\n\nwhen flag clicked\nhide\ngo to x: (4) y: (9)\nif <(backdrop [name v]) = [Level4]> then\n    show\nend\n\nwhen I receive [lavahere v]\nshow\n\n@Talking Puppy\n\nwhen this sprite clicked\nset [number v] to (pick random (1) to (5))\nif <(Number) = [1]> then\n    say [Woof!] for (2) seconds\nelse\n    if <(Number) = [2]> then\n        say [Thank you for bringing me back home!] for (2) seconds\n    else\n        if <(Number) = [3]> then\n            ask [Do you like this game? \(yes or no\)] and wait\n            if <<(answer) = [yes]> or <(answer) = [Yes]>> then\n                say [Yay! Thanks!] for (2) seconds\n            else\n                say [Aww. That's okay! Please give some feedback in the comments!] for (2) seconds\n            end\n        else\n            if <(Number) = [4]> then\n                say [Please love and favorite!] for (2) seconds\n            else\n                say [Good job!] for (2) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [wingame v]\nshow\n\n@Sprite1\n\nwhen I receive [wingame v]\ngo [backward v] (50) layers\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.005) seconds\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (100) layers\nif <(pick random (1) to (4)) = [1]> then\n    switch costume to (costume1 v)\nend\nif <(pick random (1) to (4)) = [2]> then\n    switch costume to (costume2 v)\nend\nif <(pick random (1) to (4)) = [3]> then\n    switch costume to (costume3 v)\nend\nif <(pick random (1) to (4)) = [4]> then\n    switch costume to (costume4 v)\nend\nchange [ghost v] effect by (pick random (10) to (20))\nset size to (pick random (1) to (20)) %\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (2) to (10)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\n
CLICK GREEN FLAG, WAIT ONE SECOND, THEN CLICK THE FLAG AGAIN or the puppy will fall thru the floor •o•\nThis is my very first platformer, and I'm sorry it's so short! \nIf you enjoyed, hit that heart and star! \nAlso, leave feedback and ideas for future games in my profile comments!\n