❤ Platformer Extras Tutorial ❤  

Instructions: Welcome to my first Tutorial! :D\n\n❤--------------------------Controls-----------------------❤\n\n• Arrow keys or click to navigate the tutorial.\n• Press the music button to mute/unmute the music.\n• Press the buttons that say 'Press' on them to activate transitions.\n• Click the blue text/links to go to that specific part of the tutorial!\n

@Stage\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n        if <(mouse x) > [0]> then\n            Transition From Page to Page Forward\n            wait (0.01) seconds\n        else\n            Transition From Page to Page Backward\n            wait (0.01) seconds\n        end\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch backdrop to (blank v)\n\nwhen I receive [start the tutorial v]\nswitch backdrop to (1 v)\nwait (0.2) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [next tutorial stuff v]\nset [brightness v] effect to (0)\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nnext backdrop\nwait (0.01) seconds\nset [brightness v] effect to (100)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [start the tutorial v]\nforever\n    if <key (right arrow v) pressed?> then\n        Transition From Page to Page Forward\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Carefree - Kevin MacLeod v] until done\nend\n\nwhen I receive [start the tutorial v]\nforever\n    if <key (left arrow v) pressed?> then\n        Transition From Page to Page Backward\n        wait (0.01) seconds\n    end\nend\n\ndefine Transition From Page to Page Forward\nif <(backdrop [number v]) = [23]> then\n\ndefine Transition From Page to Page Backward\nif <(backdrop [number v]) = [2]> then\n\nwhen I receive [music off v]\nset volume to (0) %\n\nwhen I receive [music on v]\nset volume to (100) %\n\n@Gradient Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nwait (1.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (Start The Tutorial v)\n\nshow\ngo to [front v] layer\n\n@Awesome Particles\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (6) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (5) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (4) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (3) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (2.5) secs to x: (x position) y: (200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the tutorial v]\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (-180)\n    create clone of (_myself_ v)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Music On/Off Button\n\nwhen flag clicked\nswitch costume to (music yes v)\nset [music on? v] to [Yes]\nhide\n\nwhen this sprite clicked\nif <(Music On?) = [Yes]> then\n    switch costume to (music no v)\n    set [music on? v] to [No]\n    broadcast (Music Off v)\nelse\n    switch costume to (music yes v)\n    set [music on? v] to [Yes]\n    broadcast (Music On v)\nend\n\nwhen I receive [start the tutorial v]\nshow\n\nwhen [m v] key pressed\nif <(Music On?) = [Yes]> then\n    switch costume to (music no v)\n    set [music on? v] to [No]\n    broadcast (Music Off v)\nelse\n    switch costume to (music yes v)\n    set [music on? v] to [Yes]\n    broadcast (Music On v)\nend\n\n@Arrows (Backpack This)\n\nwhen flag clicked\nhide\n\nswitch costume to (right arrow v)\ncreate clone of (_myself_ v)\nswitch costume to (left arrow v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    go to x: (62) y: (0)\n    if <(costume [number v]) = [1]> then\n        show\n        if <touching (mouse-pointer v)?> then\n            set size to (110) %\n        else\n            if <not <touching (mouse-pointer v)?>> then\n                set size to (100) %\n            end\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            wait until <not <mouse down?>>\n            broadcast (Next Player Costume v)\n        end\n        if <(Start the Platformer?) = [Yes]> then\n            delete this clone\n        end\n    else\n        go to x: (-62) y: (0)\n        if <(costume [number v]) = [2]> then\n            show\n            if <touching (mouse-pointer v)?> then\n                set size to (110) %\n            else\n                if <not <touching (mouse-pointer v)?>> then\n                    set size to (100) %\n                end\n            end\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            wait until <not <mouse down?>>\n            broadcast (Previous Player Costume v)\n        end\n        if <(Start the Platformer?) = [Yes]> then\n            delete this clone\n        end\n    end\nend\n\n@Player Costume Display (Backpack This)\n\nwhen flag clicked\nset [start the platformer? v] to [No]\nset [colour chosen v] to []\nset size to (40) %\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nhide\n\nwhen I receive [next player costume v]\nnext costume\n\nwhen I receive [previous player costume v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    set [colour chosen v] to [1]\nelse\n    if <(costume [number v]) = [2]> then\n        set [colour chosen v] to [2]\n    else\n        if <(costume [number v]) = [3]> then\n            set [colour chosen v] to [3]\n        else\n            if <(costume [number v]) = [4]> then\n                set [colour chosen v] to [4]\n            else\n                if <(costume [number v]) = [5]> then\n                    set [colour chosen v] to [5]\n                end\n            end\n        end\n    end\nend\nhide\nset [start the platformer? v] to [Yes]\nbroadcast (Start the Platformer v)\n\nwhen I receive [start the platformer v]\nif <(Colour Chosen) = [1]> then\n    switch costume to (1 v)\nelse\n    if <(Colour Chosen) = [2]> then\n        switch costume to (2 v)\n    else\n        if <(Colour Chosen) = [3]> then\n            switch costume to (3 v)\n        else\n            if <(Colour Chosen) = [4]> then\n                switch costume to (4 v)\n            else\n                if <(Colour Chosen) = [5]> then\n                    switch costume to (5 v)\n                end\n            end\n        end\n    end\nend\n\n@Light (Backpack This)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    forever\n        switch costume to (light v)\n        go to [back v] layer\n        change [ghost v] effect by (-10)\n        go to (player v)\n    end\nend\n\n@Particles 1 (Backpack This)\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (4) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (3) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (2) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (1.5) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (1) secs to x: (x position) y: (200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\n\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (-180)\n    create clone of (_myself_ v)\n    wait (0.01) seconds\nend\n\nwhen I start as a clone\n\nforever\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (180)\n    create clone of (_myself_ v)\n    wait (0.01) seconds\nend\n\nwhen I receive [start the platformer v]\n\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (4) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (3) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (2) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (1.5) secs to x: (x position) y: (-200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (1) secs to x: (x position) y: (-200)\n    delete this clone\nend\n\n@Particles 2 (Backpack This)\n\nwhen I start as a clone\nshow\ngo to [back v] layer\npoint in direction (pick random (-70) to (-100))\ngo to x: (300) y: (pick random (-180) to (180))\nset size to (pick random (5) to (10)) %\nset [ghost v] effect to (pick random (50) to (70))\ngo to [back v] layer\nrepeat until <(x position) < [-220]>\n    move (10) steps\nend\ndelete this clone\n\nwhen I receive [start the platformer v]\n\nswitch costume to (costume2 v)\nforever\n    hide\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\n\nshow\ngo to [back v] layer\npoint in direction (pick random (70) to (100))\ngo to x: (-300) y: (pick random (-180) to (180))\nset size to (pick random (5) to (10)) %\nset [ghost v] effect to (pick random (50) to (70))\ngo to [back v] layer\nrepeat until <(x position) > [220]>\n    move (10) steps\nend\ndelete this clone\n\n@Transition by @noodlebot743 (Backpack This)\n\nwhen I receive [transition v]\nswitch costume to (dark gray v)\ncreate clone of (_myself_ v)\nswitch costume to (gray v)\ncreate clone of (_myself_ v)\nstart sound [Level Completed v]\nhide\n\nwhen I start as a clone\nset [color v] effect to ((1) / (0))\nif <(costume [number v]) = [1]> then\n    clear graphic effects\n    set [trans. v] to [1]\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    erase all\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    repeat (20)\n        change x by (((400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) > [225]> then\n            show\n        end\n    end\n    set [trans. v] to [0]\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    clear graphic effects\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (-400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    repeat (20)\n        change x by (((-400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) < [-225]> then\n            show\n        end\n    end\n    delete this clone\nend\n\nwhen flag clicked\nset [trans. v] to [0]\n\n@Transition by @cheekyscuola (Backpack This)\n\nwhen flag clicked\nhide\n\nwhen I receive [@cheekyscuola's transition v]\nshow\nglide (1) secs to x: (0) y: (0)\nwait (0.2) seconds\nglide (1) secs to x: (0) y: (345)\nhide\n\nwhen flag clicked\n\nclear graphic effects\nset [color v] effect to (0)\nforever\n    change [color v] effect by (2)\nend\n\n@@cheekyscuola's 2nd Transition (Backpack This)\n\nwhen I receive [@cheekyscuola's 2nd transition v]\nswitch costume to (pink \(change colour\) v)\ncreate clone of (_myself_ v)\nswitch costume to (yellow \(change colour\) v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (-250) y: (0)\n    show\n    glide (1) secs to x: (0) y: (0)\n    wait (1) seconds\n    show\n    glide (1) secs to x: (-250) y: (0)\n    hide\n    delete this clone\nelse\n    go to x: (250) y: (0)\n    show\n    glide (1) secs to x: (0) y: (0)\n    wait (1) seconds\n    show\n    glide (1) secs to x: (250) y: (0)\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\n@Transition Button\n\nwhen flag clicked\nset size to (80) %\nhide\nforever\n    if <(show transition button) = [Yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [15]> then\n        set [show transition button v] to [Yes]\n    else\n        set [show transition button v] to []\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Transition v)\n\n@Transition Button2\n\nwhen flag clicked\nset size to (80) %\nhide\nforever\n    if <(show transition button2) = [Yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [16]> then\n        set [show transition button2 v] to [Yes]\n    else\n        set [show transition button2 v] to []\n    end\nend\n\nwhen this sprite clicked\nbroadcast (@cheekyscuola's Transition v)\n\n@Transition Button3\n\nwhen flag clicked\nset size to (80) %\nhide\nforever\n    if <(show transition button3) = [Yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [18]> then\n        set [show transition button3 v] to [Yes]\n    else\n        set [show transition button3 v] to []\n    end\nend\n\nwhen this sprite clicked\nbroadcast (@cheekyscuola's 2nd Transition v)\n\n@Player Control Code (You will need this)\n\nwhen flag clicked\nhide\n\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    Move Right - Example\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    Move Left - Example\nend\n\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n    Move Left - Example\nend\n\nif <key (right arrow v) pressed?> then\n    Move Right - Example\nend\nif <key (left arrow v) pressed?> then\n    Move Left - Example\nend\n\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    Move Right - Example\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    Move Left - Example\nend\n\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    Move Left - Example\nend\n\n@Link 1\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nswitch backdrop to (2 v)\n\n@Link 2\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nswitch backdrop to (4 v)\n\n@Link 3\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nswitch backdrop to (8 v)\n\n@Link 4\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nswitch backdrop to (14 v)\n\n@Link 5\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [number v]) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nswitch backdrop to (18 v)\n\n