1月24日下午3点至5点Cocos2d-x团队在线问答交流第九期~

cocos2d-html5 2.2.2 版本的设置锚点有问题。 cocos2d-html5 2.2.1 版本是可以的, 我有demo。

demo 我提供很久了, 一直没有处理。

之前没注意到,抱歉。
demo可以发我邮箱吗?我们尽快处理,shujun.qiao@chukong-inc.com 。

3.0beta版本中,有一个动作相关的类Repeat,该动作更新函数void Repeat::update(float dt),定义如下:
void Repeat::update(float dt)
{
if (dt >= _nextDt)
{
while (dt > _nextDt && _total < _times)
{
_innerAction->update(1.0f);
_total++;
_innerAction->stop();
_innerAction->startWithTarget(_target);
_nextDt += _innerAction->getDuration()/_duration;
}

    // fix for issue #1288, incorrect end value of repeat
    if(dt >= 1.0f && _total < _times) 
    {
        _total++;
    }

    // don't set an instant action back or update it, it has no use because it has no duration
    if (!_actionInstant)
    {
        if (_total == _times)
        {
            _innerAction->update(1);
            _innerAction->stop();
        }
        else
        {
            // issue #390 prevent jerk, use right update                
            _innerAction->update(dt - (_nextDt - _innerAction->getDuration()/_duration));//------------>>>>>>不用看其它了,我指的就是这一条语句<<<<<<<<<<<<<<----------------------------//
        }
    }
}
else
{
    _innerAction->update(fmodf(dt * _times,1.0f));
}

}
上面有条语句(本人已在上面指出)看不明白,自感觉修改为
_innerAction->update(MIN((dt - (_nextDt - _innerAction->getDuration()/_duration))*_times,1));
比较合适。或者根本是我个人理解有问题,在此真诚地请教。

希望在html5版和jsb中加入音效是否播放完毕的判断,另外,在项目中,我发现如果音效的时长超过10秒以上,则用jsb版本在安卓和ios上会出现播放不完全的情况

win上是没有键盘弹出,手机上才有。
退格键,不起效,可能我刚在win8上,vs2012有测试,delete键是可以删除字符的。谢谢。

我把项目从2.2.1版本移植到3.0bata版,运行竟然报错
cocos2d: JS: /Users/haohuang/Library/Application Support/iPhone Simulator/7.0.3/Applications/DC9FB4F3-E6C6-451F-AC36-1B7749425744/ShaHai iOS.app/jsb_cocosbuilder.js:17:TypeError: cc._Reader is undefined
这是什么原因呀,难道3.0bata不能用ccbi做界面了?

感谢回复!纹理引用次数的问题,我都已经排除了!SpriteFrameCache,我没有使用到!
4个layer不停的切换
测试的部分源码

恩,播放结束回调这个已经加到issue里面了。
播放不完全,也会查看和修复。谢谢!

希望能尽快解决这个问题,否则我只能曲线救国,但是采用的办法效果很不好,希望尽快尽快

不是不能删除,而是没有写对应的事件处理。

CCtableView 怎么做翻页呢
翻页就是 如果屏幕可以显示4个Cell , 每次划动结束后就滚动4个Cell.
请大神提供思路。

sc->addRegisterCallback(register_all_cocos2dx_builder);
sc->addRegisterCallback(register_CCBuilderReader);
检查下代码 js函数注册有没有加上?
在appdelegete.cpp里面。

目前提供主要支持了png以及psd(这个最终还是会转成png), pvr pvr.czz etc1 后期会考虑添加支持的。

导出文件现在已经支持自定义了,可以选择格式化的json,也可以选择移除无用字符的json,未来会考虑添加二进制文件的导出格式来加快解析速度。

cocostudio 中的按钮setEnabled(false)按钮就隐藏了,怎么使其不隐藏

http://www.cocoachina.com/bbs/read.php?tid=181496&page=3#880132
参照这个帖子看看.

对自定义C++文件生成jsb,报错
<severity = Error,
location = <SourceLocation file ‘/Users/haohuang/develop/cocos2d/cocos2d-x/cocos2dx/platform/third_party/android/prebuilt/libcurl/include/curl/curlrules.h’, line 143, column 6>,
details = “‘curl_rule_01’ declared as an array with a negative size”>

检查下环境有没有问题。
参考: http://www.cocoachina.com/bbs/read.php?tid=177904

大神们好,最近在移植原来游戏到windows phone8 和 winrt 上,用的版本是cococs2dx 2.2.1.
在移植lua 时,发现2.2.1工程中 cocos2d-x-2.2.1\scripting\lua 中没有proj.winrt 或者 proj.win8 工程。这个怎么办?
自己尝试着生成proj.win8 工程,但是在编译时,windows 运行时扩展 \zw 不能编译 .c 文件。
求帮助。谢谢了。

加上旋转 粒子的效果会有点问题