Thanks to some help with StackOverflow, I am currently animating a path in CAShapeLayer to create a triangle that points from a moving sprite to another moving point on the screen.
After the animation is complete, the triangle disappears from the screen. I use very short durations because this code runs every .1 seconds for each of the sprites. As a result, the triangles of the red triangle are correct, but they blink quickly or not. When I check the duration, I see that the triangle stays longer.
What can I do to keep the triangle on the screen with the current tovalue until the method is called again to animate from place to place? I tried installing removeOnCompletion and removeAllAnimations, but to no avail.
Code below:
-(void)animateConnector{
source share