Added method to set offset, this was required in previous version of cocos2d, but maybe not for thecurrent upstream version.