Quasi Puzzle - need help to fix a bug

Gooz

Veteran
Veteran
Joined
Mar 27, 2015
Messages
44
Reaction score
2
First Language
français
Primarily Uses
Hi everyone!


So i'm messing with Quasi Puzzle's code :  




And i found a bug to fix : when i try to push an event with the <pushOnInput> tag, it work only with the "action button" but not with the left mouse clic (as regular events).


So i found the following lines which i guess are the problem :


var Alias_Game_Player_triggerButtonAction = Game_Player.prototype.triggerButtonAction;
  Game_Player.prototype.triggerButtonAction = function() {
    if (Input.isTriggered('ok')) {
      this.checkForPushObjects();
    } 
    Alias_Game_Player_triggerButtonAction.call(this);
  };



Quasi said me it just required a 3-5 extra lines to fix, but i can't figure this out. 


I understand that the if declaration is the key but i don't find how to check is the left mouse clic has been triggered...


Like : if (Input.isTriggered('ok') || "check if left mouse clic is pressed" )


Any clues?
 

Latest Threads

Latest Posts

Latest Profile Posts

I have no idea why some of the program "splash screen" always on top. E.g, RMMZ loading screen stuck on the top blocking anything I want to do until it fully loaded. What is even the purpose?
One of the secret places in the game.
Had a dream last night that I died -- what a way to start the weekend! :'D
For some reasons, my signature was replaced by god-knows-what, written in French. Had to re-replace it with my signature Nazeem-ish quote; not gonna remake my signature any time soon.
2021? I still wonder if people still doing MV than MZ more

Forum statistics

Threads
107,635
Messages
1,031,049
Members
139,754
Latest member
vituvitu
Top