Hey all.
I am continuing work on my line drawing over time program. (reference post here: http://www.cocos2d-iphone.org/forum/topic/4497#post-28965)
I am currently having some severe issues with where sprites are drawn vs. where cocos2d thinks the sprite really is. I am using a renderTexture to capture the action. I have overridden some actions that are the same as the default, but also call renderTexture's begin/end and visit on the pen sprite to do the drawing. That appears to be working as I would expect it to, queueing up multiple actions in a sequence and drawing to the render texture.
I then added a parallel action sequence to move a sprite that looks like a pencil along the same path. This sprite is offset about a third of a screen down and a third of a screen to the right of where I would expect it to be! The actions are working properly, and other than this odd offset, the sprite moves in sync with my drawing.
After a couple of hours of hurting myself on this I finally turned off my render texture drawing of the pen sprite, and just left the pen sprite "on" all the time and let it follow it's same path it's been using to draw.
The pen path is now the same as the pencil!!!
So I'm obviously missing something -- when an actions update is getting called my coordinates are transformed different somehow than regular sprite drawing? Does anyone have an idea of what could be happening here?
If it matters this is also using the iPad simulator. I'd post a screenshot as well, but I'm not sure I can in these forums.
Thanks in advance.