Hot answers tagged cocos2d-iphone
I don't know cocos2d, but the general approach to use for this effect is simply to just render the scene at a lower resolution into an offscreen render buffer (VBO, in OpenGL terminology), and then copy that low-resolution image to the screen, with smoothing turned off. (in OpenGL terms, that'd be performing the copy using GL_NEAREST instead of GL_LINEAR). ...
So I figured that setting the location of a node without forces has this effect on the camera. Simply use forces or set the velocity of your node.
ValueMap sign = objects->getObject("sign"); float x = sign["x"].asFloat(); float y = sign["y"].asFloat(); std::string nameAlias = sign["name_alias"].asString(); ValueMap in cocos2d contains Value type. You can see in CCValue.h for more details.
Only top voted, non community-wiki answers of a minimum length are eligible