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?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Do you guys think it's better to have all members in your team from the beginning (then you can pick who battles) or you gain team members as the story goes?
PL: Patch polonizujący do RPG Makera 2003 prawie gotowy! Mamy przetłumaczoną bazę danych (projekt), polskie fonty, wiadomości walki i jakieś 90% edytora.
Do przetłumacznia pozostało te 10% edytora i plik pomocy. Niedługo więcej informacji!

Defeating a boss in Aletoirs Feast means a bunch of rewards, one of them is the "awesome loot crates" a gift that gives you a random piece of equipment ¡Totally Free! and with 4 types of crates rarity who knows? maybe you will get a legendary weapon in your first run
English is funny. You want to survive. You want to be a survivor. You definitely DON'T want to "be survived by" anyone tho, trust me.
RPG Maker Games Critique with Studio Blue: Dark and Bright starts now! Hit the link and join us in chat as Studio Blue plays this unique looking commercial RPG Maker game from Rinober!

Forum statistics

Threads
107,476
Messages
1,029,936
Members
139,604
Latest member
Tremoon
Top