Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded