The Fire Staff A Platformer #all #games 
@Stage\n\nwhen flag clicked\nbroadcast (Run Platformer v)\n\nwhen I receive [run platformer v]\nforever\n    play sound [The Script - Hall Of Fame v] until done\nend\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]\nhide\n\nwhen I receive [run platformer v]\nset [dead? v] to [0]\nset [level v] to [1]\nset size to (80) %\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\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        hide\n    end\n    if <(Level) = [5]> 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) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\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
500 loves or faves for making a 100 LEVELS platformer!\n\nParts\n======\nhttps://scratch.mit.edu/projects/624904228 ( Part 2 )\n\nhttps://scratch.mit.edu/projects/625577607 ( Part 3 )\n\nhttps://scratch.mit.edu/projects/626993173 ( Part 4 )\n\nMy other project\n===============\nPlease check it out!\n\nhttps://scratch.mit.edu/projects/624411009 ( Spring )\n\nhttps://scratch.mit.edu/projects/625323475 ( Summer )\n\nHot\n====\n- ( Part 1 ) https://scratch.mit.edu/projects/625872432\n\n\nKeys:\n\nWasd or mobile control or arrow keys\n\nChanged some levels and art\nAdded more levels \n\nIf there is any issues write it down in the comment!\n\n10 loves and 10 fave for part 2!!!!!