Betta || A Platformer
@Stage\n\nwhen I receive [play game v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [next level v]\nnext backdrop\nif <(backdrop [number v]) = [??]> then\n    broadcast (came back v)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [done intro v]\nhide variable [betta name v]\ngo to x: (0) y: (0)\nhide\nask [Whats your name? \( Keep in mind that in this game you are a Betta \)] and wait\nset [betta name v] to (answer)\nshow variable [betta name v]\nbroadcast (what do you look like v)\nswitch backdrop to (backdrop2 v)\nhide\n\n@Character\n\nwhen I receive [next level v]\ngo to x: (-196) y: (13)\n\nwhen I receive [end end end v]\nhide\n\nwhen I receive [play game v]\nhide\nset size to (25) %\nwait (1.5) seconds\ngo to x: (-196) y: (-17)\nshow\nset [x v] to [0]\nset [y v] to [0]\nrepeat until <(backdrop [name v]) = [backdrop??]>\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#f4edcb)?> then\n        change y by (1)\n    end\n    if <touching color (#f4edcb)?> then\n        change y by (1)\n    end\n    if <touching color (#f4edcb)?> then\n        change y by (1)\n    end\n    if <touching color (#f4edcb)?> then\n        change y by (1)\n    end\n    if <touching color (#f4edcb)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#f4edcb)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#f4edcb)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\n    if <<touching color (#000000)?> and <(coral power?) = [no]>> then\n        go to x: (-196) y: (-17)\n    end\n    if <<touching color (#37c570)?> or <touching color (#34b969)?>> then\n        set [y v] to [20]\n    end\n    if <<touching color (#000000)?> and <(coral power?) = [no]>> then\n        go to x: (-196) y: (-17)\n    end\n    if <key (space v) pressed?> then\n        if <<(coral power?) = [yes]> and <touching color (#000000)?>> then\n            broadcast (next level v)\n        end\n    end\nend\ngo to x: (-166) y: (-85)\n\nwhen I receive [what do you look like v]\nset size to (75) %\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    if <<key (space v) pressed?> and <(backdrop [name v]) = [backdrop2]>> then\n        next costume\n        wait (0.2) seconds\n    end\nend\n\nwhen flag clicked\nset size to (35) %\nhide\n\nwhen I receive [came back v]\ngo to x: (-54) y: (-60)\nstop [all v]\n\n@Next\n\nwhen flag clicked\nhide\nwait until <(backdrop [name v]) = [backdrop2]>\nshow\nset size to (50) %\ngo to x: (179) y: (-126)\nrepeat until <(backdrop [name v]) = [backdrop3]>\n    if <touching (mouse-pointer v)?> then\n        switch costume to (fish2 v)\n    else\n        switch costume to (fish v)\n    end\n    if <<touching (mouse-pointer v)?> and <<mouse down?> and <(costume [number v]) = [2]>>> then\n        broadcast (play game v)\n        hide\n    end\nend\n\n@Coral\n\nwhen flag clicked\ngo to [front v] layer\nset [coral power? v] to [no]\nhide\nset [brightness v] effect to (0)\ngo to x: (-26) y: (-81)\nforever\n    repeat (5)\n        change [brightness v] effect by (2)\n        change y by (3)\n    end\n    wait (0.2) seconds\n    repeat (5)\n        change [brightness v] effect by (-2)\n        change y by (-3)\n    end\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nwait until <(backdrop [name v]) = [backdrop11]>\nwait (2) seconds\nshow\nwait until <touching (character v)?>\nset [coral power? v] to [yes]\nhide\n\n@Seashell\n\nwhen flag clicked\nhide\nset [brightness v] effect to (0)\ngo to x: (165) y: (-70)\nforever\n    repeat (5)\n        change [brightness v] effect by (2)\n        change y by (3)\n    end\n    wait (0.2) seconds\n    repeat (5)\n        change [brightness v] effect by (-2)\n        change y by (-3)\n    end\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nwait until <(backdrop [name v]) = [backdrop12]>\nshow\nwait until <touching (character v)?>\nbroadcast (came back v)\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [came back v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@intro\n\ndefine Smooth glide to x: (x:) y: (y) size: (size) direction (direction) smoothness: (speed)\nrepeat until <<(round (x position)) = (x:)> and <<(round (y position)) = (y)> and <<(round (size)) = (size)> and <(round (direction)) = (direction)>>>>\n    change x by (((x:) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    change size by (((size) - (size)) / (speed))\n    turn right (((direction) - (direction)) / (speed)) degrees\nend\n\ndefine Cool turning!\nrepeat (60)\n    point in direction ((([tan v] of (turn) ) * (13)) + (90))\n    change y by (([sin v] of (turn) ) * (3))\n    change [turn v] by (5)\nend\n\nwhen flag clicked\nhide\nset [clone id v] to [1]\nrepeat (4)\n    create clone of (_myself_ v)\n    change [clone id v] by (1)\nend\n\nwhen I start as a clone\nif <(clone ID) = [1]> then\n    switch costume to (betta2 v)\n    show\n    go to [front v] layer\n    go to x: (-280) y: (0)\n    set size to (50) %\n    Smooth glide to x: [0] y: [0] size: [100] direction [90] smoothness: [10]\n    Cool turning!\n    point in direction (90)\nend\nif <(clone ID) = [2]> then\n    wait (4) seconds\n    switch costume to (alba v)\n    show\n    go to [front v] layer\n    go to x: (0) y: (200)\n    Smooth glide to x: [0] y: [-150] size: [100] direction [90] smoothness: [10]\nend\nif <(clone ID) = [3]> then\n    switch costume to (backround v)\n    show\n    go to [back v] layer\n    set [xposition v] to [480]\n    set [xposition v] to [0]\n    go to x: (Xposition) y: (ypostion)\n    forever\n        change [xposition v] by (-10)\n        go to x: (Xposition) y: (ypostion)\n    end\nend\nif <(clone ID) = [4]> then\n    wait (6.32) seconds\n    switch costume to (end v)\n    show\n    go to [front v] layer\n    go to x: (0) y: (431)\n    repeat (60)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I receive [done intro v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nplay sound [5 sec Intro Music v] until done\nplay sound [Splash v] until done\n\nwhen flag clicked\nwait (8.5) seconds\nbroadcast (Done intro v)\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n
Do you like Bettas?\nDo you like platformers?\nThis is the perfect game fo you!\nUse arrow keys ( other instructions are inside the game )\nCLICK TWICE THE FLAG⚠️CLICK TWICE THE FLAG⚠️ CLICK TWICE THE FLAG.CLICK TWICE THE FLAG ⚠️⚠️⚠️⚠️⚠️⚠️CLICK TWICE THE FLAG⚠️⚠️\nALL LEVELS ARE POSSIBLE✅✅✅✅✅✔️✔️✔️✔️\n\nIf I get 10 hearts or 5 favs, i'll add more Bettas & maybe i'll do a second part.\n\nPLEASE DON'T ADD THIS TO RANDOM STUDIOS