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