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


OverviewFelgo 1 Support › ParallaxScrollingBackground for flappybird

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #7151


    im trying to create background scrolling for flappybird and I  want it to start when game starts and to stop when player crashes …I have this so far for the background.qml but it just scrolls and doesn’t stop.. any ideas?


    ParallaxScrollingBackground {

    id: bg
    movementVelocity: Qt.point(10,0)
    ratio: Qt.point(1.0,1.0)
    sourceImage: “../img/bg-sd.png”
    function startGame() {
    bg.running = true

    function stop() {
    bg.running = false


    Felgo Team


    where did you put your ParallaxScrollingBackground item, in the GameScene.qml or in the Level.qml? Because the GameScene.qml already has methods startGame() and stopGame() where you could change the running property and the Level.qml already has start() and stop() methods. In your example above however, you used startGame() and stop(). Make sure your functions are called correctly, e.g. with console.debug(“…”) messages.


Viewing 2 posts - 1 through 2 (of 2 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