Treasurer || A Platformer #All #Games

Instructions: Hide - A Platformer by @Rolibdan32\nHow to play:\n✯Arrow keys for move\n✯Don't touch spike, lava and saws!!\n✯Complete all 10 level 100% possible!\nTry to beat the World Record (time) !!\n\nTags:\n#Hide #Platformer #Games #Spike #Saws #Music #All #Black #Lava #Popular #Recent #Love #Fave #Follow 

@Stage\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (30)\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\nrepeat (20)\n    go to [front v] layer\nend\n\n@Sprite2\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (-235) y: (-105)\nhide\nforever\n    go [backward v] (999) layers\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (pick random (200) to (300)) %\ngo to x: (pick random (-235) to (235)) y: (-105)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\ndelete this clone\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo [backward v] (99) layers\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [15]> then\n        broadcast (Finished! v)\n    else\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (100) y: (-106)\ngo [backward v] (99) layers\nforever\n    repeat (5)\n        wait (0.1) seconds\n        change y by (-1)\n    end\n    repeat (5)\n        wait (0.1) seconds\n        change y by (1)\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nset [death v] to [0]\nset size to (50) %\npoint in direction (90)\ngo to x: (141) y: (32)\n\nwhen flag clicked\nforever\n    Jump\nend\n\ndefine Touch ground\nchange [falling v] by (1)\nrepeat until <not <touching color (#cc7700)?>>\n    change y by (1)\n    set [falling v] to [0]\n    set [sy v] to [0]\nend\n\ndefine Ceiling <touch?>\nchange [falling v] by (1)\nrepeat until <not <touching color (#cc7700)?>>\n    if <touch?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [sy v] to [0]\nend\n\nwhen flag clicked\nset [sy v] to [0]\nset [sx v] to [0]\nforever\n    switch costume to (hitbox v)\n    change [sy v] by (-1)\n    change y by (SY)\n    Ceiling <(SY) > [0]>\n    if <key (left arrow v) pressed?> then\n        Walk (90) (-6)\n    end\n    if <key (right arrow v) pressed?> then\n        Walk (-90) (6)\n    end\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        switch costume to (costume2 v)\n        change [sy v] by (2)\n    end\n    if <(x position) < [-239]> then\n        point in direction (90)\n        go to x: (141) y: (32)\n        broadcast (next v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#660000)?> then\n        go to x: (141) y: (32)\n        change [death v] by (1)\n        point in direction (90)\n    end\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(Slope) = [8]> or <not <touching color (#cc7700)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(Slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Slope))\nend\n\ndefine Jump\nif <(falling) < [3]> then\n    if <key (up arrow v) pressed?> then\n        set [sy v] to [12]\n    end\nend\n\n@Sprite7\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\ngo to x: (pick random (-152) to (152)) y: (166)\nrepeat until <touching (sprite1 v)?>\n    change y by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    set [ghost v] effect to (20)\n    go to x: (0) y: (0)\n    go [backward v] (99) layers\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [finished! v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\n\n@Sprite8\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    show variable [death v]\nend\n\nwhen I receive [next v]\nnext costume\n\n@Sprite9\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n