MoveTo/MoveBy + rotation

MoveTo/MoveBy + rotation
0.0 0


Hi guys, I’m pretty new to cocos, and I’m in trouble here. I need to spawn a new sprite(it’s working) and then this sprite go foward based on its parent rotation. Like in archery. Sorry my bad english too. Thanks!


If I understand you correctly, then trigonometry is what you need.
There’s a great explanation


If the new spawned sprite (the arrow) is being added to the original one (the archer/parent) it should inherit the rotation of the parent.