Forum > C++ > Is there any way tp convert point from String like CGPointFromString?

Is there any way tp convert point from String like CGPointFromString?

By anejanikhil Posted 2012-04-14 07:44 Comments 2
anejanikhil
  • Posts: 18

HI,
Please tell me workaround for CGPointFromString in cocos2d-x..
Thanks in advance []()

festival
  • Posts: 119
  • Location: Germany

#1 RE: 2012-04-14 07:52

float x = atof (c_stringForX);

It works, ship it!

zhangxm
  • Posts: 2082
  • Location: Xiamen, China

#2 RE: 2012-04-16 02:05

There is CCPointFromString() in CCNS.h.

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps