CCParallaxNode: A node that simulates a parallax scroller The children will be moved faster / slower than the parent according the the parallax ratio.
Class CCParallaxNode
#include <Geode/cocos/tilemap_parallax_nodes/CCParallaxNode.h>
classCCParallaxNode:publiccocos2d::CCNode{ ... }
Examples0
Public static methods1
staticcocos2d::CCParallaxNode*create()
No description provided
Public member functions7
virtualcocos2d::_ccArray*getParallaxArray()const
array that holds the offset / ratio of the children
virtualvoidsetParallaxArray()
array that holds the offset / ratio of the children
virtualvoidaddChild(cocos2d::CCNode*child,uintz,cocos2d::CCPointconst¶llaxRatio,cocos2d::CCPointconst&positionOffset)
No description provided
virtualvoidaddChild(cocos2d::CCNode*child,uintzOrder,inttag)
No description provided
virtualvoidremoveChild(cocos2d::CCNode*child,boolcleanup)
No description provided
virtualvoidvisit()
No description provided
Fields1
cocos2d::CCPointm_tLastPosition;
No description provided
Protected member functions0
Protected fields1
cocos2d::_ccArray*m_pParallaxArray;
array that holds the offset / ratio of the children