A scrolling platformer -----▶ A or F

Instructions: Hi !\nJUMP on theTEXT in the map \nIt's my new project ! You must find the definition of the maths functions by FOLLOWING THE FLAGS ! But... Be careful with the SPIKES....\nFOLLOW ME IF YOU LIKE ! Thank you so much !\nI hope that you'll enjoy !

@Stage\n\nwhen flag clicked\n\n@Fond ligne\n\nwhen I receive [setip v]\nset [x lignes v] to [0]\nset [y lignes v] to [-160]\nswitch costume to (costume1 v)\nArrière plan [30] [180]\nswitch costume to (costume2 v)\nset [x lignes v] to [0]\nrepeat (7)\n    set [y lignes v] to [-180]\n    repeat (3)\n        Arrière plan (x lignes) (y lignes)\n        change [y lignes v] by (640)\n    end\n    change [x lignes v] by (960)\nend\n\ndefine Arrière plan (x) (y)\ncreate clone of (_myself_ v)\nset [x lignes v] to (x)\nset [y lignes v] to (y)\nchange [nb de clone v] by (1)\n\nwhen I receive [tick v]\nPosition ((x lignes) - (SCROLL X)) ((y lignes) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\ngo to [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nchange [☁ nb de partie v] by (1)\n\n@Crayon/flèche\n\nwhen flag clicked\nset rotation style [all around v]\nshow\ngo [forward v] (2) layers\nforever\n    play sound [vivaldi-summer-the-four-seasons \(1\) v] until done\nend\n\nwhen I receive [tick v]\nif <(Checkpoint) = [0]> then\n    point towards (point 1 v)\nend\nif <(Checkpoint) = [1]> then\n    point towards (point 2 v)\nend\nif <(Checkpoint) = [2]> then\n    point towards (point 3 v)\nend\ngo to x: (200) y: (0)\n\n@Platformes\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setip v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1-1 v)\nswitch backdrop to (backdrop1 v)\nClone at x: [160] y: [90]\nClone at x: [0] y: [0]\nClone at x: [80] y: [90]\nClone at x: [400] y: [-260]\nClone at x: [500] y: [170]\nClone at x: [600] y: [0]\nClone at x: [500] y: [-50]\nClone at x: [480] y: [0]\nClone at x: [300] y: [300]\nClone at x: [-200] y: [200]\nClone at x: [100] y: [170]\nClone at x: [400] y: [-200]\nClone at x: [350] y: [-300]\nClone at x: [500] y: [-100]\nClone at x: [400] y: [500]\nClone at x: [400] y: [-700]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nClone at x: [480] y: [0]\n\n@Joueur\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [play game v]\nset [niveau v] to [0]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setip v) and wait\n    Game on\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [Win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game on\nif <(Checkpoint) = [0]> then\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <(Checkpoint) = [1]> then\n    set [x v] to [2730]\n    set [y v] to [100]\nend\nif <(Checkpoint) = [2]> then\n    set [x v] to [2550]\n    set [y v] to [900]\nend\nif <(Checkpoint) = [3]> then\n    set [x v] to [3100]\n    set [y v] to [800]\nend\nset [speed y v] to [0]\nset [speed x v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset size to (100) %\nclear graphic effects\nshow\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> and <not <(Vortex) = [1]>>> then\n    change [speed x v] by (-2)\n    switch costume to (gauche v)\nend\nif <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> and <not <(Vortex) = [1]>>> then\n    change [speed x v] by (2)\n    switch costume to (droite v)\nend\nset [speed x v] to ((Speed x) * (0.8))\nif <([abs v] of (Speed x) ) > [0.9]> then\n    Change player x by (round (Speed x))\nend\nif <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <not <(Vortex) = [1]>>> then\n    if <(in air) < [4]> then\n        set [speed y v] to [16]\n    end\nend\nif <(Speed y) > [-20]> then\n    change [speed y v] by (-2)\nend\nChange player y by (Speed y)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nif <(SCROLL X) > [8000]> then\n    set [scroll x v] to [8000]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-160]> then\n    set [exit v] to [Die]\nend\nif <touching (danger v)?> then\n    set [exit v] to [Die]\nend\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platformes v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [speed y v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platformes v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platformes v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(sx) > [0]> then\n            set [speed x v] to [-16]\n        else\n            set [speed x v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [speed x v] to [0]\n    end\n    repeat until <not <touching (platformes v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-0.25)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\nchange [niveau v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nset [checkpoint v] to [0]\nset [niveau v] to [0]\ngo to x: (-12) y: (0)\ngo [forward v] (1) layers\n\ndefine Test - Die\n\nset [checkpoint v] to [2]\n\nwhen flag clicked\npoint in direction (90)\nset [vortex v] to [0]\nforever\n    if <touching (vortex v)?> then\n        set [vortex v] to [1]\n        change [niveau v] by (1)\n        broadcast (Niveau suivant v)\n        wait until <not <touching (vortex v)?>>\n    end\nend\n\nwhen I receive [niveau suivant v]\nwait (1) seconds\nset [speed y v] to [0]\nset [speed x v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [vortex v] to [0]\nset size to (100) %\nclear graphic effects\nshow\n\nset size to (10) %\n\nwhen I receive [tick v]\nset [x général v] to (x)\nset [y général v] to (y)\n\n@BLANK\n\nwhen flag clicked\nshow\ngo [forward v] (2) layers\ngo to [front v] layer\nset [ghost v] effect to (500)\n\n@picture/minia\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\n@Point 1\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <touching (joueur v)?> then\n        set [checkpoint v] to [1]\n        repeat (14)\n            next costume\n        end\n        repeat (5)\n            repeat (5)\n                next costume\n                wait (0.05) seconds\n            end\n            switch costume to (15 v)\n        end\n        stop [this script v]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: ((x) + (2690)) y: ((y) + (135))\nif <<<(y position) > [170]> or <[-170] > (y position)>> or <<(x position) > [200]> or <[-280] > (x position)>>> then\n    hide\nelse\n    show\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\n\n@Point 2\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <touching (joueur v)?> then\n        set [checkpoint v] to [2]\n        repeat (14)\n            next costume\n        end\n        repeat (5)\n            repeat (5)\n                next costume\n                wait (0.05) seconds\n            end\n            switch costume to (15 v)\n        end\n        stop [this script v]\n    end\nend\n\ndefine Position (x) (y)\ngo to x: ((x) + (2550)) y: ((y) + (774))\nif <<<(y position) > [170]> or <[-170] > (y position)>> or <<(x position) > [200]> or <[-240] > (x position)>>> then\n    hide\nelse\n    show\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\n\n@Point 3\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    wait until <touching (joueur v)?>\n    set [checkpoint v] to [3]\n    repeat (18)\n        next costume\n    end\n    stop [this script v]\nend\n\ndefine Position (x) (y)\ngo to x: ((x) + (5048)) y: ((y) + (157))\nif <<<(y position) > [170]> or <[-170] > (y position)>> or <<(x position) > [200]> or <[-240] > (x position)>>> then\n    hide\nelse\n    show\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\n\n@Message\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (1) seconds\ngo to x: (0) y: (50)\nswitch costume to (10 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (6) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <[380] < (x général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <[1000] < (x général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <(Checkpoint) = [1]>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <[1000] < (y général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <(Checkpoint) = [2]>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <[3300] < (x général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <[4250] < (x général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\nwait until <[4750] < (x général)>\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\nwait until <(Checkpoint) = [3]>\nnext costume\ngo to x: (0) y: (50)\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change y by (2)\nend\nwait (4) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (2)\nend\ngo to x: (0) y: (50)\n\n@DANGER\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setip v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1-1 v)\nClone at x: [300] y: [254]\nClone at x: [1020] y: [50]\nClone at x: [325] y: [-220]\nClone at x: [900] y: [0]\nClone at x: [590] y: [500]\nClone at x: [0] y: [500]\nClone at x: [160] y: [-530]\nClone at x: [160] y: [-290]\nClone at x: [685] y: [141]\nClone at x: [400] y: [340]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nClone at x: [480] y: [0]\n\n@Miniature\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo [forward v] (4) layers\n\nwhen flag clicked\nset [time : v] to [0]\nrepeat until <(Checkpoint) = [3]>\n    wait (1) seconds\n    change [time : v] by (1)\nend\nbroadcast (MàJ best v)\nchange [☁ nb de parties finies v] by (1)\n\nwhen I receive [màj best v]\nif <(Time :) < (☁ Best Time)> then\n    set [☁ best time v] to (Time :)\n    set [☁ best player v] to (username)\n    hide variable [☁ best time v]\n    hide variable [☁ best player v]\n    wait (1) seconds\n    show variable [☁ best time v]\n    show variable [☁ best player v]\nend\n\n@Texte\n\ngo [forward v] (5) layers\n\n