OverviewFelgo 2 Support (Qt 5) › Center collider

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



    I have problems to center my circle collider, The topleft corner of the collider is in the center of the sprite and the only way for me to center the collider is to shift x and y shouldnt i be able to use anchors.centerIn: parent?

    Its in the flappybird tutorial:


    import Felgo 3.0
    import QtQuick 2.0
    EntityBase {
        id: player
        entityType: "player"
        SpriteSequenceVPlay {
            id: bird
            anchors.centerIn: parent
            SpriteVPlay {
                frameCount: 3
                frameRate: 10
                frameWidth: 34
                frameHeight: 24
                source: "../assets/bird.png"
        CircleCollider {
            id: collider
            radius: 13
            x: -13
            y: -13
    //This dosent move the collider at all?        
    // anchors.centerIn: parent




    I found the answer in the documentation, a circle collider cant be altered with anchors. But in the flappybird tutorial where aint nothing about this. I think the tutorial need to be updated?


    Felgo Team

    Hi Isak!

    Yes you’re right, the tutorial seems to be outdated. Centering the circle collider was only possible with a previous Box2D integration, but not with the current one. Thank you for reporting this tutorial issue!



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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support