Forums

OverviewV-Play 1 SupportFlappy Bird Ground removal wont trigger a game over! › Reply To: Flappy Bird Ground removal wont trigger a game over!

OverviewV-Play 1 SupportFlappy Bird Ground removal wont trigger a game over! › Reply To: Flappy Bird Ground removal wont trigger a game over!
#7160

David

Hi armotechsolutions,

the BoxCollider in the BorderElement trigger the death of the bird. When you remove the Ground object in Level.qml you need to replace the y position of the second BorderElement, which is now linked to the Ground object. You can move it to the ground.

y: scene.gameWindowAnchorItem.y+scene.gameWindowAnchorItem.height

 

For debugging purpose you can use a simple Rectangle as child of the BoxCollider in the BorderElement to make it visible.

Rectangle {
  anchors.fill: parent
  opacity: 0.5
}

Cheers,

David

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