Character moving using pictures, smooth moving
-
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 :
And this is how my character moves right now...
https://vimeo.com/user102938976/review/360292213/20ce54ece4I 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. -
@flydoodle hi
it looks like your video is unavalableHow are you animatong your character ? are you using a QML AnimatedSprite type ?
-
@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. -
@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. -
@Bondrusiek i will check it out ty
-
This post is deleted!