The Platformer

Instructions: Press space to start    «arrow keys to move»   \n1234 to change characters after certain levels \nAll Levels can be completed.  \n26 Levels\nHard Levels 4,8,10,13,14,16,18,20 (Can be done) ,21 and 22\nProbably my favourite game\n------------------Read down after you have complete level 26-------------------\n\nFirstly you have 3 moves Heal Blazing Flame and Frosty winds\nLike in pokemon games  (I am not a pokemon fan so it may not be true) you press one of boxes to select a move.\n \nMoves: Blazing Flame Damage 1-6 Energy 20\n            Frosty Winds Damage  3-9 Energy 40\n            Heal  Heals 2-8 Energy Set to 100     \n\nEnemy moves:\nUltimate Doom: Damage Your health becomes 1  chance of being chosen 2%\nNote: It only Happened once but I lost instantly\n\nTerror Burst: Damage 5-10  chance of being chosen 28%\nNote: Annoying.\n\nCurse: Damage 1-5 to both players  chance of being chosen 30%\nNote: Good for you bad for him\n\nDark attack: Damage 1-5 chance of being chosen 40%\nNote: Not very good.\n

@Stage\n\nwhen flag clicked\nset [go v] to [0]\nset [done v] to [0]\nhide variable [level v]\nwait until <key (space v) pressed?>\nshow variable [level v]\nforever\n    set [level v] to ((backdrop [number v]) - (1))\nend\n\nwhen flag clicked\nstop all sounds\nforever\n    if <(Done) = [0]> then\n        play sound [Cycles- AudioNau v] until done\n    end\nend\n\nwhen flag clicked\nset [enemy health v] to [20]\nset [health v] to [20]\nhide variable [deaths v]\nwait until <key (space v) pressed?>\nshow variable [deaths v]\n\nwhen I receive [battle v]\nhide variable [deaths v]\nhide variable [level v]\n\nwhen I receive [begin v]\nstop [other scripts in stage v]\nstop [this script v]\n\n@Player\n\nwhen flag clicked\nset [gold v] to [0]\nset [answer v] to [0]\nset [silver v] to [0]\nset [platinum v] to [0]\nhide\nswitch backdrop to (backdrop0 v)\nset size to (200) %\nswitch costume to (costume1 v)\ngo to x: (-210) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nwait until <key (space v) pressed?>\nswitch backdrop to (next backdrop v)\nshow\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to ((10) + (Jump higher))\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [8]\n    end\n    change y by (0.5)\n    if <touching color (#ffff00)?> then\n        go to x: (-210) y: (-100)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#ff0000)?> then\n        if <not <(costume [number v]) = [4]>> then\n            broadcast (message1 v)\n        end\n    end\n    if <touching color (#ffc4ef)?> then\n        broadcast (battle v)\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [message1 v]\ngo to x: (-210) y: (-100)\nchange [deaths v] by (1)\n\nwhen flag clicked\nforever\n    if <([backdrop # v] of [_stage_ v]) > [3]> then\n        set [silver v] to [1]\n    end\n    if <([backdrop # v] of [_stage_ v]) > [12]> then\n        set [gold v] to [1]\n    end\n    if <([backdrop # v] of [_stage_ v]) > [23]> then\n        set [platinum v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n        if <touching color (#003fff)?> then\n            go to x: (96) y: (-101)\n        end\n    end\nend\n\nwhen flag clicked\nset [jump higher v] to [0]\nforever\n    if <key (1 v) pressed?> then\n        switch costume to (costume1 v)\n        set [jump higher v] to [0]\n    end\n    if <key (2 v) pressed?> then\n        if <(Silver) = [1]> then\n            switch costume to (costume2 v)\n            set [jump higher v] to [3]\n        end\n    end\n    if <key (3 v) pressed?> then\n        if <(Gold) = [1]> then\n            switch costume to (costume3 v)\n            set [jump higher v] to [0]\n        end\n    end\n    if <key (4 v) pressed?> then\n        if <(Platinum) = [1]> then\n            switch costume to (costume4 v)\n            set [jump higher v] to [3]\n        end\n    end\nend\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\nbroadcast (battle v)\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nswitch backdrop to (backdrop0 v)\n\n@Talk\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nswitch backdrop to (backdrop27 v)\n\nwhen I receive [battle v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nhide variable [level v]\nset [ghost v] effect to (0)\nshow\nforever\n    if <key (space v) pressed?> then\n        next costume\n        wait (0.4) seconds\n        if <(costume [number v]) = [4]> then\n            broadcast (begin v)\n            repeat (8)\n                change [ghost v] effect by (12.5)\n            end\n            hide\n            set [ghost v] effect to (0)\n            set [lost v] to [0]\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n@Player \n\nwhen I receive [battle v]\nhide variable [level v]\nswitch costume to (costume2 v)\ngo to [front v] layer\ngo [backward v] (2) layers\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [flaming blaze v]\nsay [Flaming Blaze] for (2) seconds\nswitch costume to (costume3 v)\nchange [energy v] by (-20)\nrepeat (pick random (1) to (6))\n    change [enemy health v] by (-1)\n    wait (0.5) seconds\nend\nswitch costume to (costume2 v)\nbroadcast (enemy turn v)\n\nwhen flag clicked\nset [deaths v] to [0]\nshow variable [deaths v]\nshow list [moves v]\n\nwhen I receive [begin v]\nshow variable [energy v]\nset [energy v] to [100]\nshow variable [health v]\nshow variable [enemy health v]\nset [enemy health v] to [20]\nset [health v] to [20]\nshow\nbroadcast (player turn v)\n\nwhen I receive [frosty winds v]\nsay [Frosty winds] for (2) seconds\nswitch costume to (costume4 v)\nchange [energy v] by (-40)\nrepeat (pick random (3) to (9))\n    change [enemy health v] by (-1)\n    wait (0.5) seconds\nend\nswitch costume to (costume2 v)\nbroadcast (enemy turn v)\n\nwhen I receive [heal v]\nsay [Heal] for (2) seconds\nswitch costume to (costume4 v)\nset [energy v] to [100]\nrepeat (pick random (2) to (8))\n    change [health v] by (1)\n    wait (0.5) seconds\nend\nswitch costume to (costume2 v)\nbroadcast (enemy turn v)\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [begin v]\nforever\n    if <<[0] = (Health)> or <[0] > (Health)>> then\n        set [health v] to [20]\n        broadcast (Battle v)\n        set [lost v] to [1]\n    end\nend\n\nwhen flag clicked\nset [lost v] to [0]\n\nwhen I receive [player turn v]\nwait until <(Lost) = [0]>\nsay [Choose a move] for (2) seconds\nbroadcast (Show moves v)\n\nset [health v] to [1]\n\n@Enemy\n\nwhen I receive [battle v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\n\nwhen flag clicked\nhide\n\nswitch backdrop to (backdrop27 v)\n\nwhen I receive [enemy turn v]\nset [move v] to (pick random (1) to (50))\nforever\n    if <(MOVE) = [1]> then\n        say [Utimate doom] for (2) seconds\n        set [health v] to [1]\n        if <not <<[0] = (Health)> or <[0] > (Health)>>> then\n            broadcast (player turn v)\n            stop [this script v]\n        end\n    end\n    if <<[2] < (MOVE)> and <[15] > (MOVE)>> then\n        say [Terror Burst] for (2) seconds\n        repeat (pick random (5) to (10))\n            change [health v] by (-1)\n            wait (0.2) seconds\n        end\n        if <not <<[0] = (Health)> or <[0] > (Health)>>> then\n            broadcast (player turn v)\n            stop [this script v]\n        end\n    end\n    if <<[16] < (MOVE)> and <[30] > (MOVE)>> then\n        say [Curse] for (2) seconds\n        repeat (pick random (1) to (5))\n            change [health v] by (-1)\n            change [enemy health v] by (-1)\n            wait (0.2) seconds\n        end\n        if <not <<[0] = (Health)> or <[0] > (Health)>>> then\n            broadcast (player turn v)\n            stop [this script v]\n        end\n    end\n    if <<[31] < (MOVE)> and <[50] > (MOVE)>> then\n        say [Dark attack] for (2) seconds\n        repeat (pick random (1) to (5))\n            change [health v] by (-1)\n            wait (0.2) seconds\n        end\n    end\n    if <not <<[0] = (Health)> or <[0] > (Health)>>> then\n        broadcast (player turn v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [begin v]\nsay [I have Evolved!] for (2) seconds\n\nwhen I receive [begin v]\nforever\n    if <<(Enemy Health) < [0]> or <(Enemy Health) = [0]>> then\n        set [enemy health v] to [0]\n        stop all sounds\n        broadcast (You win v)\n    end\nend\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n@Move 1\n\nwhen I receive [enemy turn v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [show moves v]\ngo to [front v] layer\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(EnerGY) > [19]> then\n            broadcast (Flaming Blaze v)\n            hide\n            broadcast (Hide moves v)\n            stop [this script v]\n        else\n            say [Not enought Energy] for (2) seconds\n        end\n    end\nend\n\nwhen I receive [battle v]\nhide\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [hide moves v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n@Move 2\n\nwhen I receive [enemy turn v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [show moves v]\ngo to [front v] layer\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(EnerGY) > [39]> then\n            broadcast (Frosty winds v)\n            hide\n            broadcast (Hide moves v)\n            stop [this script v]\n        else\n            say [Not enought Energy] for (0.8) seconds\n        end\n    end\nend\n\nwhen I receive [battle v]\nhide\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [hide moves v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n@Move 3\n\nwhen I receive [enemy turn v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [show moves v]\ngo to [front v] layer\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Heal v)\n        hide\n        broadcast (Hide moves v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [battle v]\nhide\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [hide moves v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n@You win\n\nwhen flag clicked\nhide\n\nwhen I receive [you win v]\ngo to [front v] layer\nshow\nswitch costume to (1 v)\nstart sound [triumph v]\nwait (2) seconds\nhide variable [health v]\nhide variable [energy v]\nhide variable [enemy health v]\nnext costume\nwait (50) seconds\nnext costume\n\n@Game Back Ground\n\nwhen flag clicked\nstop all sounds\ngo to [front v] layer\ngo [backward v] (10) layers\nhide\nhide variable [health v]\nhide variable [energy v]\nhide variable [enemy health v]\n\nwhen I receive [battle v]\nstop all sounds\nshow\n\nwhen flag clicked\nforever\n    set [energy v] to (EnerGY)\nend\n\nwhen flag clicked\n\nwhen I receive [begin v]\nset [done v] to [1]\nforever\n    play sound [159-battle-n v] until done\nend\n\nwhen I receive [you win v]\nhide\n\nwhen I receive [you win v]\nhide\nstop [other scripts in sprite v]\n\n