Inside Out Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [anger v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [disgust v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [fear v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [joy v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [sadness v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nforever\n    play sound [Inside Out - Main Theme \(Piano\) + Sheet Music.mp3 v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (99) y: (-12)\n\nwhen this sprite clicked\nbroadcast (Joy v)\nhide\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\n\nwhen I receive [sadness v]\nhide\n\nwhen I receive [disgust v]\nhide\n\nwhen I receive [fear v]\nhide\n\nwhen I receive [anger v]\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (231) y: (-33)\n\nwhen this sprite clicked\nbroadcast (Sadness v)\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [joy v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [disgust v]\nhide\n\nwhen I receive [fear v]\nhide\n\nwhen I receive [anger v]\nhide\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (-78) y: (-86)\n\nwhen this sprite clicked\nbroadcast (Disgust v)\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [joy v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [sadness v]\nhide\n\nwhen I receive [fear v]\nhide\n\nwhen I receive [anger v]\nhide\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (102) y: (-59)\n\nwhen this sprite clicked\nbroadcast (Fear v)\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [joy v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [sadness v]\nhide\n\nwhen I receive [disgust v]\nhide\n\nwhen I receive [anger v]\nhide\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (-134) y: (-75)\n\nwhen this sprite clicked\nbroadcast (Anger v)\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [joy v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [sadness v]\nhide\n\nwhen I receive [disgust v]\nhide\n\nwhen I receive [fear v]\nhide\n\nwhen I receive [anger v]\nhide\n\n@Sprite6\n\nwhen I receive [disgust v]\nswitch costume to (disgust v)\nshow\n\nwhen I receive [fear v]\nswitch costume to (fear v)\nshow\n\nwhen I receive [joy v]\nswitch costume to (joy v)\nshow\n\nwhen I receive [sadness v]\nswitch costume to (sadness v)\nshow\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [anger v]\nswitch costume to (anger v)\nshow\n\nwhen flag clicked\nset size to (50) %\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (join ([costume name v] of [sprite6 v]) [2])\n    end\n    if <<key (right arrow v) pressed?> and <(costume [number v]) = [6]>> then\n        switch costume to (joy v)\n    end\n    if <<key (right arrow v) pressed?> and <(costume [number v]) = [7]>> then\n        switch costume to (sadness v)\n    end\n    if <<key (right arrow v) pressed?> and <(costume [number v]) = [8]>> then\n        switch costume to (disgust v)\n    end\n    if <<key (right arrow v) pressed?> and <(costume [number v]) = [9]>> then\n        switch costume to (fear v)\n    end\n    if <<key (right arrow v) pressed?> and <(costume [number v]) = [10]>> then\n        switch costume to (anger v)\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n    end\n    change y by (y)\n    if <touching (platforms v)?> 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 (platforms v)?>> then\n        set [y v] to [12]\n    end\n    change y by (1)\n    if <<<(y position) = [-180]> or <(y position) < [-180]>> or <<touching (hazards v)?> or <touching (hazards2 v)?>>> then\n        go to x: (-202) y: (-89)\n    end\n    if <(x position) > [222]> then\n        go to x: (-202) y: (-89)\n        change [level v] by (1)\n        broadcast (Change v)\n    end\n    if <<touching (bouncies v)?> or <touching (sprite7 v)?>> then\n        broadcast (animate v)\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [anger v]\ngo to x: (-187) y: (-89)\n\nwhen I receive [disgust v]\ngo to x: (-187) y: (-89)\n\nwhen I receive [fear v]\ngo to x: (-187) y: (-89)\n\nwhen I receive [joy v]\ngo to x: (-187) y: (-89)\n\nwhen I receive [sadness v]\ngo to x: (-187) y: (-89)\n\nwhen flag clicked\nset size to (50) %\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        broadcast (DONE_DONE_JOSHDUN v)\n    end\nend\n\n@Platforms\n\nwhen flag clicked\nhide\n\nwhen I receive [anger v]\nshow\n\nwhen I receive [disgust v]\nshow\n\nwhen I receive [fear v]\nshow\n\nwhen I receive [joy v]\nshow\n\nwhen I receive [sadness v]\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [change v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Boing v)\n    end\nend\n\n@Hazards\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        go to x: (0) y: (0)\n        switch costume to (costume1 v)\n        show\n    else\n        if <(Level) = [5]> then\n            switch costume to (costume2 v)\n            show\n        else\n            if <(Level) = [6]> then\n                switch costume to (costume3 v)\n                show\n            else\n                if <(Level) = [7]> then\n                    switch costume to (costume4 v)\n                    go to x: (-63) y: (297)\n                    repeat until <not <(Level) = [7]>>\n                        change y by (-10)\n                        if <<(y position) = [-103]> or <(y position) < [-103]>> then\n                            go to x: (-63) y: (297)\n                        end\n                    end\n                else\n                    if <(Level) = [8]> then\n                        go to x: (0) y: (0)\n                        switch costume to (costume5 v)\n                        show\n                    else\n                        if <(Level) = [9]> then\n                            go to x: (0) y: (0)\n                            switch costume to (costume6 v)\n                            show\n                        else\n                            if <(Level) = [10]> then\n                                go to x: (0) y: (0)\n                                switch costume to (costume7 v)\n                                show\n                            else\n                                hide\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nswitch costume to (costume1 v)\n\nhide\nswitch costume to (costume1 v)\n\n@Bouncies\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwait (0.1) seconds\n\nwhen I receive [boing v]\ngo to x: (-47) y: (-82)\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        go to x: (-47) y: (-82)\n        show\n    else\n        if <(Level) = [5]> then\n            go to x: (114) y: (-138)\n            show\n        else\n            if <(Level) = [8]> then\n                show\n                go to x: (168) y: (-89)\n            else\n                if <(Level) = [10]> then\n                    show\n                    go to x: (-87) y: (-82)\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [animate v]\nswitch costume to (costume1 v)\nrepeat (3)\n    next costume\nend\nwait (0.1) seconds\nrepeat (3)\n    switch costume to ((costume [number v]) - (1))\nend\nswitch costume to (costume1 v)\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [boing v]\ngo to x: (32) y: (-40)\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        go to x: (32) y: (-40)\n        show\n    else\n        if <(Level) = [5]> then\n            go to x: (193) y: (-97)\n            show\n        else\n            if <(Level) = [8]> then\n                go to x: (246) y: (-48)\n                show\n            else\n                if <(Level) = [10]> then\n                    go to x: (-6) y: (-41)\n                    show\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (Animate v)\n    end\nend\n\n@words\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [anger v]\nshow\n\nwhen I receive [disgust v]\nshow\n\nwhen I receive [fear v]\nshow\n\nwhen I receive [joy v]\nshow\n\nwhen I receive [sadness v]\nshow\n\nwhen I receive [change v]\nnext costume\n\nwhen flag clicked\nforever\n    if <<(Level) = [6]> or <[6] < (Level)>> then\n        hide\n    end\nend\n\n@Hazards2\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        show\n        repeat until <not <(Level) = [7]>>\n            change y by (-15)\n            if <<(y position) = [-103]> or <(y position) < [-103]>> then\n                go to x: (147) y: (297)\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (147) y: (298)\nhide\nswitch costume to (costume1 v)\n\n@Sprite8\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [done_done_joshdun v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n