Need an animation example in korundums' ksprite?

M

meruby

I like to create an animation program using korundums' ksprite class.
It has some nice things like moveto and notify signal and such. I tried
to find some simple example to do this without any success. Can
somebody show a simple example?
 
R

Richard Dale

I like to create an animation program using korundums' ksprite class.
It has some nice things like moveto and notify signal and such. I tried
to find some simple example to do this without any success. Can
somebody show a simple example?
KSprite is in the kdegames module, so it isn't currently in the Korundum
runtime. There are some examples of QCanvas programming in qtruby, but I
don't know how much the KSprite api improves on that.

-- Richard
 
M

meruby

KSprite has moveto and notify signal method which is very handy when
you are animating many objects which changes its direction/speed at
different points in time. Together with KSpriteCache, your animation
will be faster too.

Description of

moveto:
Moves the sprite to the given position with the given speed. When it
reaches its desitnation a signal is emmited if the emmiter createNotify
is enabled

createNotify:
Creates a notification object. You can connect to it and it will emit
the signal signalNotify(QCanvasItem *parent, intmode) when a move or
animation is finished.


How about a Qcanvas animation example which will move images along some
random line? I will try to hack one from pyqt if and will post it here
if nobody will come out with one.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top