Results 1 to 3 of 3

Thread: Character moving animation using pictures

  1. #1
    Join Date
    Sep 2019
    Posts
    16
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Question Character moving animation using pictures

    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 for my walking to make smoother ? I am using KeyPressEvent right now.

    I have this picture set :
    test.jpg

    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.

    This is how my character moves right now
    https://vimeo.com/user102938976/revi...213/20ce54ece4
    Last edited by FlyDoodle; 16th September 2019 at 16:55.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,165
    Thanks
    235
    Thanked 662 Times in 652 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Character moving animation using pictures

    Qt has an "animation framework", a set of classes designed for animating changes in the properties of things on screen in a smooth manner. There are a bunch of examples here.

    In your case, you will need to animate two things at once - the picture of the character (to simulate walking) and the position.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. The following user says thank you to d_stranz for this useful post:

    FlyDoodle (16th September 2019)

  4. #3
    Join Date
    Sep 2019
    Posts
    16
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Character moving animation using pictures

    Thank you, ill try this out and see if i get anything done w it

Similar Threads

  1. Replies: 1
    Last Post: 3rd May 2017, 12:54
  2. Replies: 2
    Last Post: 8th January 2015, 20:15
  3. flickering in frame moving animation
    By Seth90 in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2011, 13:55
  4. Character by Character (Unicode?) File Reading
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 22nd April 2009, 16:28
  5. How to read QStringList character by character
    By iamjayanth in forum Qt Programming
    Replies: 4
    Last Post: 3rd April 2009, 12:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.