Forums

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

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