I create a fish for an application that swims in random places on the screen. Before the fish begins to swim to the next place, it rotates an angle between the starting point and the target point.
What I'm trying to understand is: if (target.x < start.x) , I need to flip the sprite horizontally.
The problem is that after creating the sprite and addChild for the layer, I cannot set the flipX property of the sprite using [sprite setFlipX] .
Is setFlipX installed after adding a sprite to the layer? How can I get around this? My only animation solution?
source share