Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 4 Support (Qt 6) › GameSprite use internal FelgoGames lib path (not app path)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25081

    Dmitrii

    qrc:/qml/FelgoGames/sprites/GameSprite.qml:72: QML Sprite: Cannot open: qrc:/qml/FelgoGames/sprites/bird.png
    Just try to use sprite in sequence like:

      GameSpriteSequence {
        id: bird
        anchors.centerIn: parent
    
        GameSprite {
          frameCount: 3
          frameRate: 10
          frameWidth: 34
          frameHeight: 24
          source: "bird.png"
        }
      }

    no matter what do you set in source: you’ll get qrc:/qml/FelgoGames/sprites prefix

    but in classical Image it’s work fine and search file in project dir

    #25082

    Dmitrii

    Probably I should do this Qt.resolvedUrl() before set sprite, but there is no hints in docs  (but I found clue in exaples of Flappy Bird, not in tuturial, tutorial is broken too).

    It’s breaks perception when in two similar item you need to use different approach especially when elements from Qt are mixed with Felgo features.

    But maybe there is a fresh! guide somewhere

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded