This is stright of the script call sheet from the forum and I can't get it to work for the life of me.
if(Input.keyTriggered("t")){
var xPos = $gamePlayer.screenX();
var yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos-20, yPos-30, 5, 10);
}
I got the Yanfly plugin for the button config, but its rejecting even if "ok" or something along those line is placed.
How do I create if condition attached to button input through scripting? Thanks
if(Input.keyTriggered("t")){
var xPos = $gamePlayer.screenX();
var yPos = $gamePlayer.screenY();
$gameScreen.startZoom(xPos-20, yPos-30, 5, 10);
}
I got the Yanfly plugin for the button config, but its rejecting even if "ok" or something along those line is placed.
How do I create if condition attached to button input through scripting? Thanks