cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

hexagonal tilemap on Canvas mode can't runAction #586

Closed feijing566 closed 10 years ago

feijing566 commented 10 years ago

It can work well in android or pc browser. but doesn't work in mobile browser.

dingpinglv commented 10 years ago

Hi @feijing566 ,

Could you show me some codes to reproduce the issue, and tell me which platform's mobile browser doesn't work?

Best regards David

feijing566 commented 10 years ago

Hi @dingpinglv , Thank you for your response.

runAction codes : var tile = this.tileLayer.getTileAt(pos); if(tile){ tile.runAction( cc.sequence(cc.blink(0.2,2), cc.delayTime(0.1),cc.callFunc(this.onRemove,tile)) ); } I have tried other ways like: tile.runAction( cc.blink(0.2,2) ); and some like this

all of them doesn't work.

I am using UC browser and my test phone is M1.

i have tried other browser like safari and M1's browser, it can't work too.

I have tried this.onRemove(tile). it can work well.

so i think there are some problems in runAction on Canvas

feijing566 commented 10 years ago

at last, i find the tile's _running is false.

dingpinglv commented 10 years ago

OK, I will fix it soon.

Thanks for feedback. David

feijing566 commented 10 years ago

Hi @dingpinglv , Thanks for your repair work for the other problems. What about this problem.Can you fix it?

dingpinglv commented 10 years ago

I'm sorry, we're too busy.

@VisualSJ will fix it tomorrow.

David

VisualSJ commented 10 years ago

Hello @feijing566 ~~ We meet again. ^.^

Have you tried on another phone? My S4 work properly...... I tried android mobile browser, mobile UC, mobile chrome and mobile firefox... They all work properly....

If only M1 had this problem?

VisualSJ~~

feijing566 commented 10 years ago

Hi @VisualSJ , Thanks for your response. This is my demo URL : http://220.194.60.98/wkl/pokopang/index.html The blink action may not work in mobile browser,but it works well in PC

Ps:At the beginning,the runaction doesn't work,but now it can work.... It so magic,i didn't modify any code, except the engine.

VisualSJ commented 10 years ago

@feijing566 ~

We have found the problem T.T
And has been repaired https://github.com/cocos2d/cocos2d-html5/pull/2098

Thanks for your feedback~

VisualSJ