Changing CCNode movment speed

Changing CCNode movment speed
0.0 0


Hi guys, I’ll need to change movment speed of some sprite, and I don’t know how I can do it.

Here is my movement code:

CCLabelBMFont * label = CCLabelBMFont::create(GetTextValue(entry, arg + add), file);
// ….
CCMoveTo * moveact = CCMoveTo::create((480 + data~~>height) / data~~>speed, targetpos);
CCCallFuncN::create(this, callfuncN_selector(labelMoveFinished)),
NULL) );
// ….

Offcourse there is a CCSpeed action, but in my case I need change speed at runtime, because I don’t know exatly object speed on creation. Also its hard to get really value to move group of objects regularly. Any ideas? =)