Using Action.reverse() on actions with "by" in the verb (ie: MoveBy) works fine, but it does not work with those with "to" (ie: MoveTo, for example, results in the moved object returning to cc.p(0,0)).
I think this should either be clearly stated in the docs (and throw an excemption when tried to use?) or implemented to work as it does with other functions. I suppose it would require each "to" action to remember the state of the object when it was first called.
Using
Action.reverse()
on actions with "by" in the verb (ie:MoveBy
) works fine, but it does not work with those with "to" (ie:MoveTo
, for example, results in the moved object returning tocc.p(0,0)
).I think this should either be clearly stated in the docs (and throw an excemption when tried to use?) or implemented to work as it does with other functions. I suppose it would require each "to" action to remember the state of the object when it was first called.
Thanks.