RoadTrip || A platformer #games #art #sds #roadtrip #platformer

Instructions: Welcome to RoadTrip \nThis is a platformer for the SDS\nEnjoy :)\n~CONTROLS~\nArrow keys to move\nYou can wall jump\nDo not touch orange\nFor those who is wondering what to do if you fall in level 9, just wall jump up to the surface, it is possible\nAll levels are tested and 100% possible \n~CREDITS~\n@airfaanf for the platformer engine\n@ToastMusic for the song RoadTrip by DreamMusic\n@-Xaf- for Treenan\nFor SDS\n\n\n\n\n

@Stage\n\nwhen flag clicked\nstart sound [Dream - Roadtrip \(ft PmBata\) v]\n\nwhen I receive [~roadtrip~ v]\nstop all sounds\nstart sound [Dream - Roadtrip \(ft PmBata\) v]\n\nwhen I receive [treenan v]\nstop all sounds\nstart sound [Treenan v]\n\nwhen flag clicked\nset [brightness v] effect to (0)\nwait (50) seconds\nrepeat (15)\n    wait (.5) seconds\n    change [brightness v] effect by (-2)\n    wait (.5) seconds\nend\n\nwhen I receive [_on the r0ad again_ v]\nstop all sounds\nstart sound [On the road again v]\n\n@Sprite1\n\nwhen flag clicked\nshow\nset size to (100) %\nswitch costume to (costume1 v)\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen flag clicked\ngo to x: (-204) y: (2)\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#1ffe00)?> then\n        change y by (1)\n        if <touching color (#1ffe00)?> then\n            change y by (1)\n            if <touching color (#1ffe00)?> then\n                change y by (1)\n                if <touching color (#1ffe00)?> then\n                    change y by (1)\n                    if <touching color (#1ffe00)?> then\n                        change y by (1)\n                        if <touching color (#1ffe00)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                                set [yv v] to [8]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#1ffe00)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#1ffe00)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#158529)?> then\n        broadcast (Next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-204) y: (2)\n\nwhen flag clicked\nforever\n    if <touching color (#ffac00)?> then\n        go to x: (-204) y: (2)\n    end\nend\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset [~score~ v] to [0]\nhide variable [~score~ v]\nhide variable [skipped v]\nrepeat until <(costume [number v]) = [18]>\n    wait (1) seconds\n    change [~score~ v] by (1)\nend\nshow variable [~score~ v]\nshow variable [skipped v]\nset [~score~ v] to (join (~SCORE~) [  seconds])\nwait (5) seconds\nhide variable [~score~ v]\nhide variable [skipped v]\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nnext costume\n\n@Sprite4\n\nwhen this sprite clicked\nbroadcast (~ROADTRIP~ v)\n\nwhen flag clicked\nforever\n    if <([costume # v] of [sprite3 v]) = [1]> then\n        hide\n    end\n    if <([costume # v] of [sprite3 v]) = [2]> then\n        show\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nforever\n    if <([costume # v] of [sprite3 v]) = [1]> then\n        hide\n    end\n    if <([costume # v] of [sprite3 v]) = [2]> then\n        show\n    end\nend\n\nwhen this sprite clicked\nbroadcast (TREENAN v)\n\n@THUMBNAIL\n\nwhen flag clicked\ngo to [front v] layer\nhide variable [~score~ v]\nforever\n    set [ghost v] effect to (100)\nend\n\n@Sprite6\n\nwhen flag clicked\nshow\nset [skipped v] to [0]\nforever\n    glide (1) secs to x: (47) y: (-17)\n    glide (1) secs to x: (47) y: (-36)\nend\n\nwhen this sprite clicked\nbroadcast (Next level v)\nchange [skipped v] by (1)\n\nwhen flag clicked\nforever\n    if <([costume # v] of [sprite2 v]) = [18]> then\n        hide\n    else\n        show\n    end\nend\n\n@Sprite7\n\nwhen this sprite clicked\nbroadcast (_ON THE R0AD AGAIN_ v)\n\nwhen flag clicked\nforever\n    if <([costume # v] of [sprite3 v]) = [1]> then\n        hide\n    end\n    if <([costume # v] of [sprite3 v]) = [2]> then\n        show\n    end\nend\n\n