I think ActionFloat is what you want. You can use it like this:
float x;
...
auto floatAnim = ActionFloat::create(0.2f /*duration*/, 0.f /*from*/, 1.f /* to */, [&x](float value){
x = value;
});
someNode->runAction(floatAnim);
Hope that helps
.