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. Sequence of actions
Qt 6.11 is out! See what's new in the release blog

Sequence of actions

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 518 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    David Demelier
    wrote on last edited by
    #1

    Hello,

    I'm writing a simple game in C++ and Qt 5, I have some objects on a QGraphicsScene that I would like to move into a specific sequence. Like a script of actions. The idea is to write something like this:

    • move(x, y, delay)
    • rotate(angle, delay)
    • wait(some time)
    • move(x, y, delay)

    And obviously all of these call are sequential and nonblocking. I'm thinking of using QPropertyAnimation and QSequentialAnimationGroup but I'm not sure if I'll be able to do everything I need by just manipulating properties.

    Do you have some non blocking patterns to advice in such a case? Perhaps mixing this with states.

    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