Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To my knowledge, there is no direct interface in Cocos2d to use CGPaths from Apple's CoreAnimation library. </p> <hr> <p><strong>EDIT1:</strong> Sorry, I misunderstood your question! Cocos2d provides no tools to animate/morph from one shape defined by a path to another shape defined by a different path. You'll either need to create your own custom class that inherits from CCNode, or use some library other than Cocos2d. If you do create your own CCNode subclass, then the existing Cocos2d action/animation tools may be of use... </p> <hr> <p><strong>EDIT2:</strong> If you understand how to subclass, then here is a link with the very basics of what methods you want to override in a subclass of CCNode: <a href="http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:draw_update" rel="nofollow">http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:draw_update</a> </p> <p>Also, the cocos2d programming guide may be helpful in general: <a href="http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:index" rel="nofollow">http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:index</a></p> <p>If you don't understand how to subclass (e.g. have a new <code>class</code> inherit from an existing <code>class</code>), then I would recommend you learn about this part of Object Oriented Programming using a simpler problem! </p> <hr> <p><strike> I believe your best option is to look into <code>CCSequence</code> (this is a type of <code>CCAction</code>) and stuff it with a series of <code>CCMoveTo</code> or <code>CCMoveBy</code> actions. </p> <p>Tutorial Link: <a href="http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:actions_composition" rel="nofollow">http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:actions_composition</a> </strike></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload