I can't use the object of cpBody in other function
or how I can passing the object body in other function ?
thanks
A fast, easy to use, free, and community supported 2D game engine
I can't use the object of cpBody in other function
or how I can passing the object body in other function ?
thanks
One solution is to subclass your Sprite class and add cpBody as a property. I find this very helpful because often you need Sprite characteristics and the cpBody in the same block of code.
Thanks jd
You must log in to post.