- Joined
- Dec 1, 2015
- Messages
- 3
- Reaction score
- 0
- First Language
- German
Hy Everyone,
I make a Sprite Button on Scene_Map and it calls out the Menu. So far so good, but if I click on the Button my Party move in its direction for 1 second or so an then it opens the Menu. My
question is, how can I say if I click on that Sprite Button its no Moving Command.
This is the Button:
var Scene_Map_create = Scene_Map.prototype.create;
Scene_Map.prototype.create = function() {
Scene_Map_create.call(this);
};
Scene_Map.prototype.createSpriteButtons = function() {
this._spriteButton = new Sprite_Button();
this._spriteButton.bitmap = ImageManager.loadSystem('Menu');
this._spriteButton.x = 770;
this.addChild(this._spriteButton);
}
var Scene_Map_update = Scene_Map.prototype.update
Scene_Map.prototype.update = function() {
Scene_Map_update.call(this);
this.createSpriteButtons();
this._spriteButton.setClickHandler(this.onButtonOK1.bind(this));
};
Scene_Map.prototype.onButtonOK1 = function() {
SoundManager.playOk();
SceneManager.push(Scene_Menu);
Window_MenuCommand.initCommandPosition();
$gameTemp.clearDestination();
this._mapNameWindow.hide();
};
Thanks for Anwsers and if anyone has no solution but an Idea let me hear it
maybe this Idea brings the Solution.
Flo
I make a Sprite Button on Scene_Map and it calls out the Menu. So far so good, but if I click on the Button my Party move in its direction for 1 second or so an then it opens the Menu. My
question is, how can I say if I click on that Sprite Button its no Moving Command.
This is the Button:
var Scene_Map_create = Scene_Map.prototype.create;
Scene_Map.prototype.create = function() {
Scene_Map_create.call(this);
};
Scene_Map.prototype.createSpriteButtons = function() {
this._spriteButton = new Sprite_Button();
this._spriteButton.bitmap = ImageManager.loadSystem('Menu');
this._spriteButton.x = 770;
this.addChild(this._spriteButton);
}
var Scene_Map_update = Scene_Map.prototype.update
Scene_Map.prototype.update = function() {
Scene_Map_update.call(this);
this.createSpriteButtons();
this._spriteButton.setClickHandler(this.onButtonOK1.bind(this));
};
Scene_Map.prototype.onButtonOK1 = function() {
SoundManager.playOk();
SceneManager.push(Scene_Menu);
Window_MenuCommand.initCommandPosition();
$gameTemp.clearDestination();
this._mapNameWindow.hide();
};
Thanks for Anwsers and if anyone has no solution but an Idea let me hear it
Flo

