Spring A Platformer #games #art

Instructions: Season Platformer is out!\n======================\n\nhttps://scratch.mit.edu/projects/625323475 ( Summer )\n\nhttps://scratch.mit.edu/projects/627572330 ( Autumn )\n\nKeys\n======\nMobile Friendly/ Arrow Keys / WASD \n\nWelcome to Spring A Platformer!\n\nComplete all the levels!\nMake sure to love and fav!\n\nHot\n====\n- ( Part 1 ) https://scratch.mit.edu/projects/625872432\n\nRules\n======\n~ No advertising ( will be reported )\n~ No F4F ❌\n

@Stage\n\n@Player\n\nwhen I receive [run platformer v]\nforever\n    if <<[240] < (x position)> and <(dead?) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [level v] by (1)\n        Reset - Setup\n    end\nend\n\nwhen flag clicked\nhide variable [xv v]\nhide variable [dead? v]\nhide variable [level v]\nhide variable [yv v]\nbroadcast (Run Platformer v)\nhide\n\nwhen I receive [run platformer v]\nset [dead? v] to [0]\nset [level v] to [1]\nset size to (1000) %\nReset - Setup\nforever\n    go to [front v] layer\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n        end\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change x by ((Xv) * (-2))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [13]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <touching (lava v)?>> then\n        Death\n    end\n    if <(y position) < [-180]> then\n        Death\n    end\n    if <touching (bouncy v)?> then\n        set [yv v] to [15]\n    end\nend\n\nwhen I receive [run platformer v]\nset [level v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\ndefine Reset - Setup\nset [dead? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\npoint in direction (90)\ngo to x: (-201) y: (30)\nclear graphic effects\nswitch costume to (1 v)\nset size to (80) %\nshow\n\ndefine Death\nset [dead? v] to [1]\nrepeat (25)\n    turn right (5) degrees\n    change [ghost v] effect by (4)\n    change size by (-4)\nend\nReset - Setup\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\nhide\n\nhide\n\n@ground\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [run platformer v]\nshow\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [run platformer v]\nforever\n    set y to (([cos v] of ((timer) * (150)) ) * (7))\nend\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@bouncy\n\nwhen flag clicked\nhide\ngo to x: (-31) y: (-157)\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        go to x: (-158) y: (-70)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        go to x: (-99) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        go to x: (0) y: (-75)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        go to x: (124) y: (-71)\n        show\n    end\nend\n\ndefine Bouncy Animation\nstart sound [jump v]\ngo to [front v] layer\nrepeat (6)\n    wait (.01) seconds\n    next costume\nend\n\n@Letter\n\nwhen flag clicked\nhide\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\n    go to [front v] layer\nend\n\ngo to [front v] layer\n\n