parents- a platformer #games

Instructions: Today, i had a crazy dream. my parents left me alone at home without food! I woke up anxious, and then I thought, if I really did not have a family? if the dream was true? this dream was horrible and sad. and then the idea came to me to express my dream in a game. I hope you like it and do not forget to love and favorite!

@Stage\n\nwhen flag clicked\nswitch backdrop to (costume2 v)\nwait until <key (space v) pressed?>\nswitch backdrop to (backdrop1 v)\nbroadcast (Start v)\n\nwhen I receive [nextlevel v]\nnext backdrop\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (25) y: (44)\nset [ghost v] effect to (100)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen [space v] key pressed\nstop [other scripts in sprite v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Sprite2\n\ndefine Platform (jump height) (friction) (running speed)\nswitch costume to (hitbox v)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [x velocity v] by (running speed)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    point in direction (-90)\n    change [x velocity v] by ((running speed) * (-1))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nif <<touching color (#008f2f)?> or <touching color (#703b00)?>> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <<touching color (#008f2f)?> or <touching color (#703b00)?>>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <<touching color (#008f2f)?> or <touching color (#703b00)?>> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <<touching color (#008f2f)?> or <touching color (#703b00)?>> then\n                change x by (([abs v] of (X Velocity) ) / ((X Velocity) * (-1)))\n            end\n        end\n    end\nend\nchange y by (Y Velocity)\nif <<touching color (#008f2f)?> or <touching color (#703b00)?>> then\n    repeat ([ceiling v] of ([abs v] of (Y Velocity) ) )\n        if <<touching color (#008f2f)?> or <touching color (#703b00)?>> then\n            change y by (([abs v] of (Y Velocity) ) / ((Y Velocity) * (-1)))\n        end\n    end\n    if <<(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n        switch costume to (idle v)\n    end\nelse\n    change [y velocity v] by (-1)\nend\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to x: (-102) y: (20)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform [12] [0.7] [2]\nend\n\nwhen flag clicked\nforever\n    wait until <(x position) = [244]>\n    broadcast (NextLevel v)\n    go to x: (-92) y: (100)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nrepeat (20)\n    go to x: (-92) y: (-100)\nend\n\nwhen flag clicked\nforever\n    wait until <<<touching color (#c0c0c0)?> or <touching color (#8c8c8c)?>> or <touching color (#cc0000)?>>\n    wait (0.1) seconds\n    go to x: (-92) y: (100)\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(backdrop [number v]) = [17]>\nshow\nrepeat (100)\n    wait (1.1) seconds\n    broadcast (bad shoot! v)\nend\n\nwhen flag clicked\nrepeat (3)\n    wait until <touching (sprite5 v)?>\n    wait (1) seconds\nend\nhide\nstop [other scripts in sprite v]\nwait (0.5) seconds\nbroadcast (you win v)\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to (sprite3 v)\n\nwhen I receive [done v]\nhide\ngo to (sprite3 v)\n\nwhen I receive [bad shoot! v]\nshow\nglide (1) secs to (sprite2 v)\npoint towards (sprite2 v)\nbroadcast (done v)\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to (sprite2 v)\npoint towards (sprite2 v)\n\nwhen I receive [done v]\nhide\ngo to (sprite2 v)\n\nwhen [space v] key pressed\nshow\nglide (1) secs to (sprite3 v)\npoint towards (sprite3 v)\nwait (0.5) seconds\nbroadcast (done v)\n\n@Sprite6\n\nwhen flag clicked\nhide\nplay sound [Birds Day v] until done\n\nwhen I receive [you win v]\nshow\nstop all sounds\nforever\n    play sound [322_full_wake-up-and-be-bold_0136_preview v] until done\nend\n\n@Sprite7\n\nwhen flag clicked\nhide\n\n