Controlling sprite move
Hi! I am creating this platform game and part of my platform game is the movement of the character
I have already created a serquence of pictures that shows the character walking. What I wanted to do is when I clicked a button, the character will move...
Is it possible here at Qt?
Yes it is.
You can create an action ( "QAction":http://developer.qt.nokia.com/doc/qt-4.8/qaction.html), or you can inherit function keyPressEvent ( QKeyEvent * event ).
Doing a sprite animation is simple, Create an array with the list of your pictures.
You can have an timer which will advance this array.
Go through the "Qt Flying Bus example":http://developer.qt.nokia.com/wiki/Flying_Bus_Game
You can find the FrameSprite, which will give you the idea about how to achieve it.