The nodes are in a world with gravity and I updated the Y-axis position in each frame using update scheduler.
In a CCNode, I tried to use CCMoveBy action for nodes to perform movement in X-axis.
Unfortunately, it seems it does not work that the node moves in X-axis only. Is it a normal behavior that once the node is controlled by CCAction, other codes cannot be able to control it correctly? If so, can you give me some idea on how to handle the following? Thanks.
# Nodes inside a world with Gravity
# Nodes inside a world with scroll map (e.g. 2d shooting game)
Thanks.
For this case, I tried to stick with Action and so I create my own action class which is named as CCTranslate. (I cannot think of other name that is better than “move”).
It simply do the movement and the position is not related to starting point. I put the code here for those who are interested in it.