NEON||Scrolling platformer mobil ;)
@Stage\n\nwhen flag clicked\nforever\n    play sound [TheFatRat%20-%20Windfall v] until done\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (level 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nwait (1) seconds\nnext costume\n\n@Player2\n\nwhen flag clicked\nset [vélocité du x \( sa fait scientifique\) v] to [0]\nset [vélocité du y \( sa fait tjr scientifique \) v] to [0]\nforever\n    broadcast (tick v)\nend\n\nwhen I receive [restart v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\n\ndefine Tick\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [vélocité du x \( sa fait scientifique\) v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [vélocité du x \( sa fait scientifique\) v] by (-1)\nend\nset [vélocité du x \( sa fait scientifique\) v] to ((Vélocité du X \( sa fait scientifique\)) * (0.9))\nchange x by (Vélocité du X \( sa fait scientifique\))\nif <touching color (#04ff00)?> then\n    change y by (1)\n    if <touching color (#04ff00)?> then\n        change y by (1)\n        if <touching color (#04ff00)?> then\n            change y by (1)\n            if <touching color (#04ff00)?> then\n                change y by (1)\n                if <touching color (#04ff00)?> then\n                    change y by (1)\n                    if <touching color (#04ff00)?> then\n                        change x by ((Vélocité du X \( sa fait scientifique\)) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(Vélocité du X \( sa fait scientifique\)) > [0]> then\n                                set [vélocité du x \( sa fait scientifique\) v] to [-10]\n                            else\n                                set [vélocité du x \( sa fait scientifique\) v] to [10]\n                            end\n                            set [vélocité du y \( sa fait tjr scientifique \) v] to [15]\n                        else\n                            set [vélocité du x \( sa fait scientifique\) v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [vélocité du y \( sa fait tjr scientifique \) v] by (-1)\nchange y by (Vélocité du Y \( sa fait tjr scientifique \))\nif <touching color (#04ff00)?> then\n    change y by ((Vélocité du Y \( sa fait tjr scientifique \)) * (-1))\n    set [vélocité du y \( sa fait tjr scientifique \) v] to [0]\nend\nchange y by (-1)\nif <touching color (#04ff00)?> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [vélocité du y \( sa fait tjr scientifique \) v] to [15]\n    end\nend\nchange y by (1)\nif <<([y position v] of [level v]) > [700]> or <touching color (#ff0000)?>> then\n    set [scrollx v] to [810]\n    set [scrolly v] to [400]\nend\nchange [scrollx v] by ((x position) * (-1))\nchange [scrolly v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching color (#2affff)?> then\n    broadcast (Next Level v) and wait\nend\nif <touching color (#c500ff)?> then\n    set [vélocité du y \( sa fait tjr scientifique \) v] to [30]\nend\nif <touching color (#efff00)?> then\n    set [vélocité du y \( sa fait tjr scientifique \) v] to [17]\nend\n\nif <touching color (#f5a600)?> then\n    set [vélocité du x \( sa fait scientifique\) v] to [50]\nend\n\nwhen I receive [tick v]\nTick\n\n\n\nif <[2] > (Vélocité du Y \( sa fait tjr scientifique \))> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [vélocité du y \( sa fait tjr scientifique \) v] to [12]\n        wait until <not <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>\n    end\nend\n\n@tb\n\nwhen flag clicked\nerase all\nclear graphic effects\nhide\nerase all\n\nwhen [timer v] > (0)\nshow\nset size to (101) %\ncreate clone of (_myself_ v)\ngo to x: (-200) y: (0)\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat until <(x position) = [0]>\n    go to [front v] layer\n    change [ghost v] effect by (-5)\n    change x by ((0) - ((x position) / (9)))\nend\n\nwhen I start as a clone\ngo to x: (200) y: (0)\nswitch costume to (2 v)\nshow\nset [ghost v] effect to (100)\nrepeat until <(x position) = [0]>\n    go to [front v] layer\n    change [ghost v] effect by (-10)\n    change x by ((0) - ((x position) / (9)))\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n
All read before play \nTout lire avant de jouer \n\n             ◎ Neon~Scrolling platformer mobil ◎\n\nEnglish :\nRules:\n★ green rectangle is the floor\n★ red rectangle is lava\n★ purple rectangle is over jump \n★ yellow rectangle is little jump \n★ blue square is a portal for the next level \n〜〜〜\n☆ 5 level \n☆ Follow me @KING_OF_PLATFOMER\n☆ Follow @Jloau \n☆…\n☆ and @-Aldess (#Grattor)\n☆  pls ★ et ♥︎\n\nFrançais \nRègles:\n\n★ le rectangle vert est le sol\n★ le rectangle rouge est de la lave\n★ le rectangle violet est au-dessus du saut\n★ le rectangle jaune est un petit saut\n★ le carré bleu  est un portail pour le niveau suivant\n〜〜〜\n☆ 5 niveaux\n☆ Suivez-moi @KING_OF_PLATFOMER\n☆ Suivre @Jloau\n☆ et @-Aldess (#Grateur) Xd\n☆...\n☆ pls ★ et ♥︎\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n(☝︎ ՞ਊ ՞)☝︎ 