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

Forums

OverviewFelgo 1 Support › Flappy bird tilt mechanism

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7414

    Lasse

    How do I go about creating a flappy bird tilt mechanism like in the original? Where if you don’t tap the phone for a while he starts falling nose first into the ground?

    #7415

    Alex
    Felgo Team

    Hi,

    go to Player.qml and add this to the SpriteSequenceFromFile:

    rotation: wabbleX.running ? 0 : collider.linearVelocity.y/10

    This will change the rotation according to the vertical speed, but only if the bird is not “wabbling” (the random movement in the menu and ready screen).

    Cheers,
    Alex

    #7416

    Lasse

    alex.huber said:

    Hi,

    go to Player.qml and add this to the SpriteSequenceFromFile:

    rotation: wabbleX.running ? 0 : collider.linearVelocity.y/10

    This will change the rotation according to the vertical speed, but only if the bird is not “wabbling” (the random movement in the menu and ready screen).

    Cheers,
    Alex

    You’re the man! Thanks a bunch.

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