spritebuilder - Cocos2d CCNode.positionInPoints gives percentage value not position? -
i think have simple problem. making project in sprite builder, , tend lay things out percentages.
but in xcode when "position in points" give me percentage (i.e. number 0-1). if change percentages in spritbuilder works fine, keep things in percentage.
what causing this?
it's position type. reference:
by using
positiontype
property can specify how node’s position interpreted. instance, if set typeccpositiontypenormalized
position value of (0.5, 0.5) place node in center of parent’s container. container specified parent’scontentsize
.
Comments
Post a Comment