赞 | 28 |
VIP | 0 |
好人卡 | 0 |
积分 | 76 |
经验 | 0 |
最后登录 | 2024-11-11 |
在线时间 | 1435 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 7623
- 在线时间
- 1435 小时
- 注册时间
- 2018-12-16
- 帖子
- 2019
|
https://forums.rpgmakerweb.com/i ... -a-js-plugin.61785/
您可以執行以下操作:
this._moveSpeed = 4;
this._moveFrequency = 6;
這是您可以更改的值,位於6223行的
rpg_objects.js中:this._x = 0;
_y = 0;
this._realX = 0;
this._realY = 0;
this._moveSpeed = 4;
this._moveFrequency = 6;
this._opacity = 255;
this._blendMode = 0;
this._direction = 2;
this._pattern = 1;
this._priorityType = 1;
this._tileId = 0;
this._characterName ='';
this._characterIndex = 0;
this._isObjectCharacter = false;
this._walkAnime = true;
this._stepAnime = false;
this._directionFix = false;
this._through = false;
this._transparent = false;
this._bushDepth = 0;
this._animationId = 0;
this._balloonId = 0;
this._animationPlaying = false;
this._balloonPlaying = false;
this._animationCount = 0;
this._stopCount = 0;
this._jumpCount = 0;
this._jumpPeak = 0;
this._movementSuccess = true;
您可以使用事件命令“腳本...”,
它非常通用,例如您可以淡出一個事件,例如:
事件的第一頁,設置變量,使用並行或自動運行:
this._opacity = 255;
下一頁,設置為並行或自動運行:腳本...事件命令:
if(this._opacity> 0){
this._opacity-= 1;
}
它將使您的角色逐漸消失。Javascript + rpg製作器mv是最好的。
javscript中的隨機值如下所示:
Math.floor(Math.random()*((10-5 + 1)+5);
在5-10之間執行隨機數,只需用您的數字替換兩個5和10 。選擇的範圍
要改變你做的事件移動速度:
VAR eventspeed_fastest = 6;
VAR eventspeed_slowest = 1;
this._moveSpeed = Math.floor(的Math.random()*((eventspeed_fastest-eventspeed_slowest + 1)+ eventspeed_slowest);
你可以如果您願意,也可以對player對象執行相同的操作:
碼:
var eventspeed_fastest = 6;
var eventspeed_slowest = 1;
$gamePlayer._moveSpeed = Math.floor(Math.random()*((eventspeed_fastest-eventspeed_slowest+1)+eventspeed_slowest); |
|