rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.22k stars 263 forks source link

有时候使用抖动这个插件的会造成最终position改变 #198

Closed mayujuan981017 closed 3 years ago

mayujuan981017 commented 3 years ago
截屏2021-08-21 下午9 26 39

图片上数字应该和正方形图片一起抖动,使用抖动这个插件有时候会出现正方形图片脱离数字

rexrainbow commented 3 years ago

Bug fixed, please get latest version of minify file. Test

mayujuan981017 commented 3 years ago

采用更新后的版本仍然存在上述bug 小球在撞击障碍物的时候,障碍物仍然会有和数字脱离的情况,视频可见如下链接~

链接:https://pan.baidu.com/s/1YIyFP4LIfV39eEiY5sJQUg 提取码:rL2e --来自百度网盘超级会员V3的分享

rexrainbow commented 3 years ago

Updated another version of minify file, which will set position back more earlier, under 'prestep' event.

mayujuan981017 commented 3 years ago

Thanks!I will try it

mayujuan981017 commented 3 years ago

您好~可以把修改的东西发一个npm包嘛

rexrainbow commented 3 years ago

Won't upgrade npm package this week. Maybe next or next two weeks later.

mayujuan981017 commented 3 years ago

Thanks~

mayujuan981017 commented 3 years ago

您好~我引入https://raw.githubusercontent.com/rexrainbow/phaser3-rex-notes/master/dist/rexshakepositionplugin.min.js 这个文件还是会偶发方块和数字脱离的问题,碰撞会对抖动有影响嘛

rexrainbow commented 3 years ago

Shake behavior has 2 modes, uses 'effect' mode to set position back in game's 'prestep' event.

Static body won't be push out when arcade collided, general speaking.

Please provide a simplest runnable test code if this issue still occurs.