Closed zehuichen123 closed 6 years ago
I used another live2d repository to solve this problem, still with some errors raised in my site when I viewed the console in Chrome. QAQ
抱歉这两天事情比较多,现在才有空回复 关于你提到的问题,这是我代码的问题,当时只实现了功能,没做兼容处理 如果要用我提供的live2d.js,model.json目前必须添加如下字段值
"hit_areas_custom":{
"head_x":[-0.35, 0.6],
"head_y":[0.19, -0.2],
"body_x":[-0.3, -0.25],
"body_y":[0.3, -0.9]
}
否则就会报错,寒假期间代码不会更新,可以先看看这个项目
我知道啦~ 谢啦 而且我的mouseover好像是失效的 = =
I use hexo to generate my files. I don't know where to put my live2d.js so that I can access it through relative address. Thus, I put my live2d.js in folder
blogFolder/node_modules/hexo-helper-live2d/assets/Pio
(since I find hexo will put all files in the pointed figure's folder intoblogFolder/public/live2d/assets/
, which allow me to access this file by writing:But when I run my site in localhost:4000, only figure image is visible while text hasn't been shown. And this is error message in my console:
Here is my live2d.js line 582:
Here is my live2d.js line 800:
Here is index line 1814:
Can someone tell me what's wrong with my live2d??? I am quite confused since I know little about js. Your suggestions/ solutions will be highly appreciated! QAQ
ps. I used theme next in hexo. You can view my site or just comment below if you want more imfomation.