[Cocos2dx-js v3.7.1]cc.pool undefined!

I am trying to use cc.pool, but the console says it its undefined? i thought it is already included in the coocs2d 3.x versions…

Are you trying to use cc.pool in web?

If so, try add ccpool in modules of project.json to see it work or not.

yes sir in web, i thought it was ready to use in in any platform… :smile:

@eydamson

Most of the function can use at any platform, some functions are used internally by engine.

But there are still some limitations, for jsb.function will only able to use in native.

The modules is used by web version, you can include only the modules you needed in order to reduce package size.

So does adding ccpool in modules works for you?

so does it mean that cocos2dx-js is not entirely a copy of cocos2dx?

cc.pool works for me thanks… :smiley:

BTW i am making a flappy bird game, i am using the cc.pool in my obstacles…

but i have one problem, my obstacles are static rigid body, and i am making them move from right side of the screen to the left by altering the position of the body directly and not by force or impulse. These obstacles(physicsBody) have shape and sprite in it. I am able to make them move and detect collision to the player. Its is fully finished and playable in the web browser. but when i try to build it in android or win32 only the sprites are moving and the shape is not… Have you encountered issues like this. What if we want a moving platform like in mario i think that would be a problem, cuz those platforms are sure to be static, but you cant move it because it is mark as static. Thanks man :smile:

I already post an issue about it, you can check it out if you want… :smile:

Im sorry I know this is a very basic issue but yeah Im just a new bie of cocos2d :smile:

@eydamson

It is ok to ask anything in the forum.

Cocos2d-X is a community driven, people are willing to help if they know.