Hi! I have a an error in code:
std::function<void (Node *o)> laneMove;
FiniteTimeAction act1;
FiniteTimeActionacte1;
laneMove=[&act1,&acte1](Node *o){
o->runAction(Sequence::createWithTwoActions(act1, acte1)); //after first move app crash and show this line
};
for(int a=0;a<2;a++){
for(int i=0;i<=10;i++){
laneShort[a][i]=LayerColor::create({240,240,240,255},0.5*dpi,8*dpi);
laneShort[a][i]>setPosition/2+/3+a*dpi,100*dpi-i+2*dpi);>addChild(laneShort[a][i]);
this
acte1=CallFuncN::create(laneMove);
act1=MoveBy::create(2, Point(0,–10*dpi));
laneMove(laneShort[a][i]);
}
}
How to solve this problem?