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?
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?