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!


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.