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. Character moving using pictures, smooth moving
Forum Updated to NodeBB v4.3 + New Features

Character moving using pictures, smooth moving

Scheduled Pinned Locked Moved Solved Game Development
7 Posts 5 Posters 1.1k 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.
  • F Offline
    F Offline
    FlyDoodle
    wrote on last edited by
    #1

    Hello
    so i was just wondering is there a way for me to make a moving animation for my character or do i have to do it using pictures ? And is there a way to make my character's walking smoother ? I am using KeyPressEvent right now.

    I have this picture set :
    0_1568645130920_test.PNG

    And this is how my character moves right now...
    https://vimeo.com/user102938976/review/360292213/20ce54ece4

    I know how to do to using pictures, just changing pictures after every move but i was wondering if there is a smoother way of making a moving animation and if there is a smoother way of walking.
    Using KeyPressEvent makes the character move weirdly.

    ODБOïO 1 Reply Last reply
    0
    • F FlyDoodle

      Hello
      so i was just wondering is there a way for me to make a moving animation for my character or do i have to do it using pictures ? And is there a way to make my character's walking smoother ? I am using KeyPressEvent right now.

      I have this picture set :
      0_1568645130920_test.PNG

      And this is how my character moves right now...
      https://vimeo.com/user102938976/review/360292213/20ce54ece4

      I know how to do to using pictures, just changing pictures after every move but i was wondering if there is a smoother way of making a moving animation and if there is a smoother way of walking.
      Using KeyPressEvent makes the character move weirdly.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @flydoodle hi
      it looks like your video is unavalable

      How are you animatong your character ? are you using a QML AnimatedSprite type ?

      F 1 Reply Last reply
      2
      • ODБOïO ODБOï

        @flydoodle hi
        it looks like your video is unavalable

        How are you animatong your character ? are you using a QML AnimatedSprite type ?

        F Offline
        F Offline
        FlyDoodle
        wrote on last edited by FlyDoodle
        #3

        @lelev
        hello
        hmm... maybe this link will work: https://streamable.com/oackr
        No im not using that i just use KeyPressEvent, At the start the character is in the still position (idle i guess) so when i press the down key i change the picture of my character to the PlayerMoveDownLeft picture, then on the second press i change it to PlayerMoveDownRight picture and it repeats like that ( left, right, left, right ) and when the player doesn't press a key for about 200ms the picture changes back to PlayerMoveDownStill picture.

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

          @FlyDoodle hi,
          see Animation Framework https://doc.qt.io/qt-5/animation-overview.html and Easying Curves section. Easing Curves helps perform an interpolation between the start and end property value.

          F 1 Reply Last reply
          0
          • BondrusiekB Bondrusiek

            @FlyDoodle hi,
            see Animation Framework https://doc.qt.io/qt-5/animation-overview.html and Easying Curves section. Easing Curves helps perform an interpolation between the start and end property value.

            F Offline
            F Offline
            FlyDoodle
            wrote on last edited by
            #5

            @Bondrusiek i will check it out ty

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Datdobazan
              Banned
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • A Offline
                A Offline
                adomanim
                Banned
                wrote on last edited by
                #7
                This post is deleted!
                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