Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Flickering QGraphicsPixmapItem and QPropertAnimation objects

Flickering QGraphicsPixmapItem and QPropertAnimation objects

Scheduled Pinned Locked Moved Unsolved Game Development
2 Posts 1 Posters 546 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BondrusiekB Offline
    BondrusiekB Offline
    Bondrusiek
    wrote on last edited by
    #1

    Hi,
    I created game which is similar to FlappyBird. I have problem with moveable and changing pixmap objects.
    jumper1.png
    When move and change pixmap is too fast flickering exist(It is not visible on picture, you must play to see that). If I decrease speed flickering fades out.
    Catctus uses QPropertyAnimation to change x pos.
    Coin uses QPropertyAnimation to change x pos and QTimer and slot function to change pixmap.
    Do you know how solve that?
    Full source code:
    https://github.com/Przemekkkth/Jumper

    1 Reply Last reply
    0
    • BondrusiekB Offline
      BondrusiekB Offline
      Bondrusiek
      wrote on last edited by
      #2

      I found similar topic:
      https://forum.qt.io/topic/38432/solved-what-is-the-best-way-to-call-a-rendering-function-and-game-logic-for-a-game

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved