Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 1 Support › Flappy Bird with multi color pipes?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7091

    John

    Is there a way to make different pipe colors appear when you pass a certain amount of pipes? I have no idea how to begin it!  any help would be great. thanks guys

    #7093

    John

    Would this work in pipes.xml

    SingleSpriteFromFile {
         id: spriteUpperPipe
         translateToCenterAnchor: false
         filename: "../img/images-sd.json"
         source: (score >= 0 && score <20) ? "pipe_green.png" : (score >= 20) ? "m)pipe_red.png" : ""
         mirrorY: true
    }

     

    #7094

    John

    Nevermind I figured it out lol

    #7104

    David

    Hi armotechsolutions,

    you got a typo in pipe_red.png with leading m) , which was the error.

    You can simply test it by setting score to 19 in initGame() in GameScene.qml.

     

    Cheers,

    David

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.