Forums

OverviewV-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support