Assets for Scrolling Platformer (furqan2018)
@Stage\n\nwhen flag clicked\nbroadcast (Start v)\nset [username v] to (username)\nwait (4) seconds\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen I receive [the end v]\nshow variable [message v]\nif <(Timer) < (☁ World Record)> then\n    set [message v] to (join (join [You beat the record time ] (join (☁ World Record) (join [ With ] (Timer)))) (join [ With ] (join [total die is ] [])))\n    speak (message)::tts\nelse\n    set [message v] to (join (join (join [You got ] (Timer)) (join [ The record time is ] (☁ World Record))) (join [ and your total die is ] []))\n    speak (message)::tts\nend\n\nwhen I receive [the end v]\nif <(Timer) < (☁ World Record)> then\n    set [☁ world record v] to (Timer)\nend\n\nwhen flag clicked\nhide variable [message v]\nset [timer v] to [0]\nwait (4) seconds\nforever\n    wait (1) seconds\n    change [timer v] by (1)\nend\n\nwhen [timer v] > (0.025)\nhide variable [message v]\n\n@Player\n\nwhen I receive [start v]\nset [walking v] to [0]\nwait (2) seconds\nshow\npoint in direction (90)\ngo to x: (0) y: (180)\nset rotation style [left-right v]\nset size to (100) %\nset [3.0 v] to [0]\nset [4.0 v] to [-3]\nforever\n    change [4.0 v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        set [walking v] to [1]\n        change [3.0 v] by (-1)\n    else\n        set [walking v] to [0]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        set [walking v] to [1]\n        change [3.0 v] by (1)\n    else\n        set [walking v] to [0]\n    end\n    set [3.0 v] to ((3.0) * (0.9))\n    if <touching (platforms v)?> then\n        set [4.0 v] to [0]\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        set [4.0 v] to [0]\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        set [4.0 v] to [0]\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        set [4.0 v] to [0]\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (-4)\n        change x by ((3.0) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [4.0 v] to [12]\n            if <([abs v] of (3.0) ) = (3.0)> then\n                set [3.0 v] to [-10]\n            else\n                set [3.0 v] to [10]\n            end\n        else\n            set [3.0 v] to [0]\n        end\n    end\n    change y by (4.0)\n    if <touching (platforms v)?> then\n        change y by ((4.0) - ((4.0) * (2)))\n        set [4.0 v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (platforms v)?>> then\n        set [4.0 v] to [12]\n    end\n    change y by (1)\n    set x to (0)\n    set [1.0 v] to (3.0)\n    if <<<touching (_edge_ v)?> and <[-10] > (y position)>> or <touching (danger v)?>> then\n        set [3.0 v] to [0]\n        set [4.0 v] to [-3]\n        set [1.0 v] to [-300]\n        change [total die v] by (1)\n        point in direction (90)\n        set y to (180)\n    end\n    broadcast (Stage v) and wait\nend\n\nwhen flag clicked\nset [total die v] to [0]\nset [collected v] to [0]\ngo to x: (0) y: (0)\nhide\nif <<(username) = [furqan2018]> and <(username) = [furqan2018]>> then\n    switch costume to (furqan2018 v)\nelse\n    switch costume to (player v)\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        set [3.0 v] to [0]\n        set [4.0 v] to [-3]\n        set [1.0 v] to [-300]\n        point in direction (90)\n        set y to (180)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (exit v)?> then\n        broadcast (THE END v)\n    end\nend\n\nwhen I receive [the end v]\nhide\n\nwhen [timer v] > (0.025)\nhide\n\n@Platforms\n\nwhen I receive [start v]\nset [6.0 v] to [0]\nset [5.0 v] to [0]\nswitch costume to (costume1 v)\nset [7.0 v] to [28]\nrepeat ((7.0) - (1))\n    create clone of (_myself_ v)\n    next costume\n    change [6.0 v] by (479)\nend\n\nwhen I receive [stage v]\nset [5.0 v] to ((5.0) + (1.0))\nif <(5.0) < [0]> then\n    set [5.0 v] to [0]\nend\ngo to x: ((6.0) - (5.0)) y: (0)\n\nwhen I receive [start v]\ngo to x: (0) y: (50)\ngo [backward v] (1) layers\nshow\nset size to (80) %\n\n@?\n\n@Splash\n\nwhen flag clicked\nhide\nhide variable [collected v]\nhide variable [total die v]\nwait (4) seconds\nshow variable [collected v]\nshow variable [total die v]\n\nwhen [timer v] > (0.025)\nshow\n\nwhen [timer v] > (0.025)\nhide variable [collected v]\nhide variable [total die v]\n\nwhen I receive [the end v]\nshow\n\n@Load\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nwait (4) seconds\nhide\n\nwhen [timer v] > (0.025)\nhide\n\n@Danger\n\nwhen I receive [start v]\nset [9.0 v] to [0]\nset [8.0 v] to [0]\nswitch costume to (costume1 v)\nset [10.0 v] to [28]\nrepeat ((10.0) - (1))\n    create clone of (_myself_ v)\n    next costume\n    change [9.0 v] by (479)\nend\n\nwhen I receive [stage v]\nset [8.0 v] to ((8.0) + (1.0))\nif <(8.0) < [0]> then\n    set [8.0 v] to [0]\nend\ngo to x: ((9.0) - (8.0)) y: (0)\n\nwhen I receive [start v]\ngo to x: (0) y: (50)\ngo [backward v] (1) layers\nshow\nset size to (80) %\n\n@Exit\n\nwhen I receive [start v]\nset [6.0 v] to [0]\nset [5.0 v] to [0]\nswitch costume to (costume1 v)\nset [7.0 v] to [28]\nrepeat ((7.0) - (1))\n    create clone of (_myself_ v)\n    next costume\n    change [6.0 v] by (479)\nend\n\nwhen I receive [stage v]\nset [5.0 v] to ((5.0) + (1.0))\nif <(5.0) < [0]> then\n    set [5.0 v] to [0]\nend\ngo to x: ((6.0) - (5.0)) y: (0)\n\nwhen I receive [start v]\ngo to x: (0) y: (50)\ngo [backward v] (1) layers\nshow\nset size to (80) %\n\n@Collectable\n\nwhen flag clicked\nshow\nwait (4) seconds\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        change [collected v] by (1)\n        hide\n        delete this clone\n    end\nend\n\nwhen [timer v] > (0.025)\n\nwhen I receive [the end v]\n\nwhen I receive [start v]\nset [6.0 v] to [0]\nset [5.0 v] to [0]\nswitch costume to (costume1 v)\nset [7.0 v] to [28]\nrepeat ((7.0) - (1))\n    create clone of (_myself_ v)\n    next costume\n    change [6.0 v] by (479)\nend\n\nwhen I receive [stage v]\nset [5.0 v] to ((5.0) + (1.0))\nif <(5.0) < [0]> then\n    set [5.0 v] to [0]\nend\ngo to x: ((6.0) - (5.0)) y: (0)\n\nwhen I receive [start v]\ngo to x: (0) y: (50)\ngo [backward v] (1) layers\nshow\nset size to (80) %\n\n
arrow keys/WAD to move\n(collected MAX:27)