globalAnimate Speed
This commit is contained in:
parent
3732f6e493
commit
05a87f07fd
@ -44,8 +44,6 @@ control.prototype.setRequestAnimationFrame = function () {
|
||||
}
|
||||
}());
|
||||
|
||||
core.animateFrame.speed = core.values.animateSpeed;
|
||||
|
||||
var draw = function(timestamp) {
|
||||
|
||||
// move time
|
||||
@ -57,7 +55,7 @@ control.prototype.setRequestAnimationFrame = function () {
|
||||
}
|
||||
|
||||
// Global Animate
|
||||
if (timestamp - core.animateFrame.globalTime > core.animateFrame.speed && core.isPlaying()) {
|
||||
if (timestamp - core.animateFrame.globalTime > core.values.animateSpeed && core.isPlaying()) {
|
||||
|
||||
core.status.globalAnimateStatus++;
|
||||
|
||||
|
||||
@ -36,7 +36,6 @@ function core() {
|
||||
'moveTime': 0,
|
||||
'lastLegTime': 0,
|
||||
'leftLeg': true,
|
||||
'speed': null,
|
||||
'weather': {
|
||||
'time': 0,
|
||||
'type': null,
|
||||
|
||||
@ -1364,7 +1364,6 @@ maps.prototype.removeGlobalAnimate = function (x, y, all, name) {
|
||||
maps.prototype.setGlobalAnimate = function (speed) {
|
||||
if (main.mode=='editor' && main.editor.disableGlobalAnimate) return;
|
||||
core.status.globalAnimateStatus = 0;
|
||||
core.animateFrame.speed = speed;
|
||||
core.animateFrame.globalAnimate = true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user