Sky Islands Platformer
@Stage\n\nwhen flag clicked\nstart sound [song v]\n\nwhen flag clicked\nswitch backdrop to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        next backdrop\n        stop [this script v]\n    end\nend\n\n@Sprite1\n\n@player\n\ndefine Check Player Touching\nif <touching (next v)?> then\n    broadcast (Complete level v) and wait\n    Reset Player Position\nend\nif <<touching (no v)?> or <touching (lava/spikes v)?>> then\n    set [player speed y v] to [10]\nend\nif <<touching (no v)?> or <touching (lava/spikes v)?>> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    Reset Player Position\nend\n\ndefine Reset Player Position\nclear graphic effects\ngo to x: (-123) y: (-10)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nReset Player Position\nset [force walk v] to [3]\nset [force gravity v] to [-1.5]\nset [force jump v] to [17]\nset [player speed x v] to [0]\nforever\n    Check Player Gravity\n    Check Player Walk\n    Check Player Touching\nend\n\ndefine Check Player Walk\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    set rotation style [left-right v]\n    point in direction (-90)\n    change [player speed x v] by ((-1) * (FORCE WALK))\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    set rotation style [left-right v]\n    point in direction (90)\n    change [player speed x v] by ((1) * (FORCE WALK))\nend\nif <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume3 v)\nend\nset [player speed x v] to ((Player Speed X) * (0.7))\nchange x by (Player Speed X)\nif <(Player Speed X) > [0]> then\n    move out [-1] [0]\nelse\n    move out [1] [0]\nend\n\ndefine Check Player Gravity\nchange [player speed y v] by (FORCE GRAVITY)\nchange y by (Player Speed Y)\nif <touching (levels v)?> then\n    if <(Player Speed Y) > [0]> then\n        move out [0] [-1]\n        set [player speed y v] to [0]\n    else\n        move out [0] [1]\n        if <<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [player speed y v] to (FORCE JUMP)\n        else\n            set [player speed y v] to [0]\n        end\n    end\nend\n\ndefine move out (dx) (dy)\nrepeat until <not <touching (levels v)?>>\n    change x by (dx)\n    change y by (dy)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.001) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nrepeat (4)\n    change [ghost v] effect by (5)\n    wait (0.001) seconds\nend\ndelete this clone\n\nwhen [n v] key pressed\nbroadcast (Complete level v)\n\nwhen flag clicked\nswitch costume to (costume3 v)\n\n@Levels\n\nwhen I receive [complete level v]\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\nswitch costume to (level1 v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        broadcast (FIN v)\n    end\nend\n\n@coins\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    wait (0.009) seconds\n    next costume\n    if <touching (player v)?> then\n        delete this clone\n    end\nend\n\nforever\n    if <<(Level) = [1]> or <<(Level) = [2]> or <<(Level) = [3]> or <<(Level) = [4]> or <<(Level) = [5]> or <<(Level) = [6]> or <<(Level) = [7]> or <(Level) = [8]>>>>>>>> then\n        create clone of (_myself_ v)\n        repeat until <touching (player v)?>\n    end\nend\n\nwhen I receive [complete level v]\ncreate clone of (_myself_ v)\n\n@Next\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [complete level v]\nnext costume\n\n@NO\n\n@Lava/Spikes\n\nwhen I receive [complete level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sword\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [11]> then\n        broadcast (Sword v)\n        show\n    end\nend\n\nwhen I receive [sword v]\npoint in direction (180)\ngo to x: (-6) y: (-13)\nforever\n    if <touching (player v)?> then\n        broadcast (Player Sword v)\n    end\nend\n\nwhen I receive [player sword v]\nforever\n    go to (player v)\n    change x by (-8)\n    change y by (-15)\nend\n\n@END?\n\nwhen I receive [fin v]\nshow\nstop [all v]\n\nwhen flag clicked\nhide\n\n@Text\n\nwhen I receive [complete level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (level1 v)\n\n@TN\n\nshow\n\nwhen flag clicked\nhide\n\n@Skip\n\nwhen flag clicked\ngo to x: (-185) y: (-136)\n\nwhen this sprite clicked\nbroadcast (Complete level v)\n\n
Have Fun :D\nWASD or Arrows to move \nWorks on Mobile\nGet coins\n\nGo Follow @Jedi-12\n\nWe made it to 4000+ views lets now try to get 10000 views