赞 | 23 |
VIP | 9 |
好人卡 | 0 |
积分 | 27 |
经验 | 3990 |
最后登录 | 2024-6-4 |
在线时间 | 386 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2691
- 在线时间
- 386 小时
- 注册时间
- 2015-8-8
- 帖子
- 437

|
3楼

楼主 |
发表于 2018-10-28 18:26:00
|
只看该作者
本帖最后由 冷俊逸 于 2018-10-28 19:01 编辑
已解决,谢谢!
但是延迟很严重,怎么才能确保人物在完成获取信息后才能移动呢?
您好,我使用如下脚本后
var xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function(){ $gameVariables.setValue(1, xmlhttp.responseText);} alert(xmlhttp.responseText) xmlhttp.open("GET","https://www.lengjunyi.work/rpgmaker/Get_Score.php/"); xmlhttp.send();
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function(){
$gameVariables.setValue(1, xmlhttp.responseText);}
alert(xmlhttp.responseText)
xmlhttp.open("GET","https://www.lengjunyi.work/rpgmaker/Get_Score.php/");
xmlhttp.send();
会延迟很久才会获得返回
能请求一下援助吗 |
|