Narrator 1 | A Platformer
@Stage\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        switch backdrop to (level 13 v)\n    else\n        switch backdrop to (sky v)\n    end\nend\n\n@Player\n\ndefine Run physics (acceleration) (deacceleration) (gravity) (jump height)\nchange [sy v] by (gravity)\nchange [sx v] by (((<<key (d v) pressed?> or <key (right arrow v) pressed?>> - <<key (a v) pressed?> or <key (left arrow v) pressed?>>) * (1.7)) * (acceleration))\nset [sx v] to ((sx) * (deacceleration))\nif <touching (trampoline v)?> then\n    set [sy v] to [19]\nend\nchange x by (sx)\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (1)\nend\nif <touching (level v)?> then\n    change y by (-4)\n    change x by ((sx) * (-1))\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [sy v] to ((jump height) - (2))\n        if <[0] < (sx)> then\n            set [sx v] to [-13]\n        else\n            set [sx v] to [13]\n        end\n    else\n        set [sx v] to [0]\n    end\nend\nchange y by (sy)\nif <touching (level v)?> then\n    change y by ((sy) * (-1))\n    set [sy v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <touching (level v)?> then\n        set [sy v] to [15]\n    end\nend\nchange y by (1)\n\ndefine Respawn (x) (y)\ngo to x: (x) y: (y)\nset [sy v] to [0]\nset [sx v] to [0]\n\ndefine Walk\nif <(x position) < [-220]> then\n    set x to (-220)\nend\nif <(x position) > [221]> then\n    set x to (221)\nend\nif <(<<key (d v) pressed?> or <key (right arrow v) pressed?>> - <<key (a v) pressed?> or <key (left arrow v) pressed?>>) = [1]> then\n    switch costume to (moving player v)\n    point in direction (90)\nend\nif <(<<key (a v) pressed?> or <key (left arrow v) pressed?>> - <<key (d v) pressed?> or <key (right arrow v) pressed?>>) = [1]> then\n    switch costume to (moving player v)\n    point in direction (-90)\nend\nif <(<<key (a v) pressed?> or <key (left arrow v) pressed?>> - <<key (d v) pressed?> or <key (right arrow v) pressed?>>) = [0]> then\n    switch costume to (still player v)\n    point in direction (0)\nend\n\nwhen I receive [start game loop v]\nset [in air v] to [10]\nforever\n    Run physics [1] [0.8] [-1] [14]\n    Walk\n    Next Level Check\n    Respawn Check\n    create clone of (_myself_ v)\nend\n\ndefine Respawn Check\nif <<touching (spike v)?> or <<touching (lava v)?> or <<touching (saw v)?> or <touching (enemies v)?>>>> then\n    stop [other scripts in sprite v]\n    change [total deaths this level v] by (1)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    if <(Level) = [5]> then\n        Respawn [-200] [0]\n    else\n        Respawn [-180] [0]\n    end\n    wait (0.4) seconds\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    broadcast (Start Game Loop v)\nend\n\ndefine Next Level Check\nif <<(Level) = [11]> and <[140] < (x position)>> then\n    broadcast (END v)\nelse\n    if <<(Level) = [9]> or <(Level) = [10]>> then\n        if <[150] < (x position)> then\n            Next Level\n        end\n    else\n        if <[220] < (x position)> then\n            Next Level\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (blank v)\nrepeat (20)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [green flag v]\nset [level v] to [1]\nRespawn [-180] [0]\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nbroadcast (Start Game Loop v) and wait\n\nwhen flag clicked\nhide\n\nwhen I receive [jump v]\nset [sx v] to [0]\nset [sy v] to [0]\ngo to x: (0) y: (-68)\nshow\nset [sy v] to [15]\nrepeat (50)\n    create clone of (_myself_ v)\nend\nset [sx v] to [40]\nrepeat (4)\n    create clone of (_myself_ v)\nend\nset [sx v] to [35]\nrepeat (7)\n    create clone of (_myself_ v)\nend\nhide\nbroadcast (Game - Play v)\n\nwhen I receive [game v]\ngo to x: (0) y: (-68)\nwait (6) seconds\nshow\ngo to [front v] layer\nswitch costume to (moving player v)\nwait (1) seconds\nhide\n\nwhen I receive [end v]\nhide\n\ndefine Next Level\nstop [other scripts in sprite v]\nset [total deaths this level v] to [0]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nchange [level v] by (1)\nRespawn [-200] [0]\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (Start Game Loop v)\n\n@Level\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nshow\nforever\n    go to [front v] layer\n    switch costume to (Level)\nend\n\nwhen I receive [game - play v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nshow\ngo to [front v] layer\n\n@Text\n\nwhen I receive [green flag v]\nset [green flag v] to [1]\nforever\n    if <[] = [1]> then\n        set [brightness v] effect to (100)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [green flag v] to [0]\nforever\n    switch costume to (Level)\n    if <(green flag) = [0]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [outro v]\nwait (8) seconds\nhide\n\nwhen I receive [end v]\nhide\n\n@Lava\n\nwhen I receive [green flag v]\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: ((([cos v] of (((timer) - (3)) * (200)) ) * (7)) - (10))\nend\n\nwhen flag clicked\nhide\n\n@Spike\n\nwhen I receive [green flag v]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen I receive [outro v]\nhide\n\nwhen flag clicked\nhide\n\n@END SCREEN\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [end v]\nshow\n\n@Game Start\n\nwhen I receive [game - play v]\nset [hide v] to [0]\ngo to x: (0) y: (0)\nswitch costume to (narrator v)\nshow\nwait (2) seconds\ncreate clone of (_myself_ v)\nwait until <(hide) = [1]>\nhide\nbroadcast (Green Flag v)\n\nwhen flag clicked\nbroadcast (Game - Play v)\nhide\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (triangle play v)\nset [ghost v] effect to (100)\ngo to x: (10) y: (-10)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nwait until <(hide) = [1]>\nhide\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    set [hide v] to [1]\nend\n\n
Just listen to the narrator...\n\nWASD or Arrow Keys\n\nIf you remix, you will be unique out of 15K people as only 60 others remixed!