Mandalorian : The game ( A Baby Yoda Platformer)
@Stage\n\nwhen flag clicked\nswitch backdrop to (forest3 v)\n\nwhen I receive [skip v]\nnext backdrop\n\nwhen flag clicked\n\n\nwhen I receive [change backdrop v]\nswitch backdrop to (backdrop1 v) and wait\n\nwhen I receive [the door has been opened...... v]\nnext backdrop\n\nwhen I receive [the game has ended v]\nswitch backdrop to (backdrop13 v) and wait\n\n@Baby Yoda\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\nwhen flag clicked\nset [speed y v] to [0]\nforever\n    change y by (speed y)\n    change [speed y v] by (-1)\n    if <touching (ground v)?> then\n        set [speed y v] to [0]\n        change y by (1)\n        set [my variable v] to [0]\n    end\nend\n\nwhen flag clicked\ngo to x: (-200) y: (-100)\n\nwhen flag clicked\nforever\n    change [my variable v] by (-1)\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <<<touching (danger v)?> or <touching (sprite1 v)?>> or <touching (sprite2 v)?>> then\n        go to x: (-200) y: (-100)\n    end\nend\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <([abs v] of (speed) ) > [3]>> then\n        if <(wall jump) = [0]> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [wall jump v] to [15]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (the door v)?> then\n        go to x: (-200) y: (-100)\n        broadcast (THE DOOR HAS BEEN OPENED...... v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (THE ENEMY HAS BEEN RELIESED... v)\n    end\nend\n\nwhen I receive [the game has ended v]\nforever\n    change [ghost v] effect by (20)\nend\n\nwhen flag clicked\nhide\nshow\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        Walk (-90) (-7)\n    else\n        if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n            Walk (90) (7)\n        else\n            set [frame v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>> and <touching (ground2 v)?>> then\n        set [speed y v] to [10]\n        wait (0.62) seconds\n    end\nend\n\nwhen I receive [start the game v]\nbroadcast (music, chop chop v)\n\nset voice to (tenor v)::tts\nreset timer\nspeak [hello, whats your name]::tts\nask [] and wait\nspeak (answer)::tts\nspeak [will you help baby yoda find the mandalorian ]::tts\nask [] and wait\nif <<<<(answer) = [Ok]> or <(answer) = [ok]>> or <<(answer) = [Yes]> or <(answer) = [yes]>>> or <<<(answer) = [Sure]> or <(answer) = [sure]>> or <<<(answer) = [yeah]> or <(answer) = [Yeah]>> or <(answer) = [okay]>>>> then\n    speak [YAY. He says thanks!]::tts\nelse\n    speak [ok. baby yoda wil die a sad painfull death in the middle of the desert]::tts\n    set voice to (giant v)::tts\n    speak [the game is ending]::tts\n    stop all sounds\n    stop [all v]\nend\n\nwhen I receive [music, chop chop v]\nforever\n    play sound [The Mandalorian Theme2 v] until done\nend\n\n@ground\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [the door has been opened...... v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\nwait (0.7) seconds\n\nwhen flag clicked\nhide\nshow\n\nforever\n    change [ghost v] effect by (25)\nend\n\nwhen flag clicked\ngo to x: (4) y: (4)\n\nwhen I receive [the game has ended v]\nforever\n    change [ghost v] effect by (20)\nend\n\nwhen I receive [start v]\n\n@danger\n\nwhen I receive [the door has been opened...... v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [skip v]\nnext costume\nwait (0.7) seconds\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\ngo to x: (4) y: (4)\n\nwhen I receive [the game has ended v]\nforever\n    change [color v] effect by (20)\nend\n\nwhen flag clicked\nhide\nshow\n\nwhen I receive [start v]\n\n@THE DOOR\n\nwhen flag clicked\nforever\n    change [ghost v] effect by (25)\nend\n\nwhen I receive [the door has been closed...... v]\nhide\n\nwhen flag clicked\nshow\n\n@Sprite3\n\nwhen backdrop switches to [backdrop11 v]\nbroadcast (THE DOOR HAS BEEN CLOSED...... v)\nwait (0.5) seconds\nrepeat (5)\n    change [ghost v] effect by (-20)\n    go to [front v] layer\nend\nwait (2) seconds\nbroadcast (THE GAME HAS ENDED v)\n\nwhen flag clicked\nshow\ngo to x: (2) y: (37)\nset [ghost v] effect to (100)\n\nwhen I receive [the game has ended v]\nforever\n    change [ghost v] effect by (25)\nend\n\n@ground2\n\nwhen flag clicked\nswitch costume to (costume2 v)\nforever\n    change [ghost v] effect by (100)\nend\n\nwhen I receive [the door has been opened...... v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\nwait (0.7) seconds\n\nwhen flag clicked\nhide\nshow\n\nwhen flag clicked\ngo to x: (4) y: (8)\n\nwhen I receive [the game has ended v]\nforever\n    change [ghost v] effect by (20)\nend\n\nwhen I receive [start v]\n\n@Sprite5\n\n@Sprite4\n\nwhen flag clicked\nwait (0.001) seconds\nswitch costume to (costume1 v)\nwait (2) seconds\nswitch costume to (costume2 v)\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (start the game v)\n\n@Thumbnail2\n\nwhen flag clicked\nforever\n    show\n    set size to (100) %\n    go to x: (0) y: (0)\n    switch costume to (title 2 v)\n    forever\n        go to [front v] layer\n        set [ghost v] effect to (100)\n    end\nend\n\n
LOOK HERE FOR #2 https://scratch.mit.edu/projects/477404347\n\nHello, this is my first Platformer, click the flag to start. Press arrow keys and space to move. Read the story before playing (scroll down to see). I hOPe yOU eNjOY!! PLEASE HEART AND STAR!!!! Baby Yoda's Adventure 2 is coming soon! What do you think of my project, i'd love some feedback.\n\nStory:\nBaby Yoda and the Mandalorian were flying over a planet when two Imperial ships blasted their wing and Baby Yoda fell out the ship and landed in the middle of a desert. Help him find his way to the Mandalorian so he is safe. \n