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. Moving Objects in a Game
Forum Updated to NodeBB v4.3 + New Features

Moving Objects in a Game

Scheduled Pinned Locked Moved Game Development
3 Posts 2 Posters 5.9k 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.
  • I Offline
    I Offline
    Isabelle91
    wrote on last edited by
    #1

    I am making a game which I need some objects to be moving in a similar manner to the balls in the game Zuma, how do I do this? I already have a graphic which is a twisty river, the objects should move following the flow of the river. I am new to QT language and require all the help I can get. Thank you.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gmaro
      wrote on last edited by
      #2

      Hello Isabelle,

      For this kind of game I can recommend two ways for you:

      Use the GraphicsView Framework, "examples":http://qt-project.org/doc/qt-4.8/examples-graphicsview.html, "description":http://qt-project.org/doc/qt-4.8/graphicsview.html

      Use QML, "examples":http://qt-project.org/doc/qt-4.8/qdeclarativeexamples.html, "simple tutorial":http://doc-snapshot.qt-project.org/4.8/qml-tutorial.html

      Using QML might be really fast to develop such game, but i think you're loosing a good opportunity to get a lot of knowledge about Qt itself.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Isabelle91
        wrote on last edited by
        #3

        Hi Gmaro, thank you for your help. However, I've been looking through the QML examples for a very long time.. Most of them have restricted X & Y axis movement, my river is very twisty and bendy, requires the objects to move in diagonals and in different angles. Is this possible with QML?

        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