Stop Movement while Click on Sprite Button

Lah

Warper
Member
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top