Hello!!
So I'm trying to make a plugin that triggers when a certain button is pressed (namely it can take you to a message that was previously written and vice versa), but whenever I playtest my game, it never works out for me. I'm trying to use the isTriggeered javascript code, but it doesn't seem to work unless it's in a parallel event. Is there a way/plugin of checking button inputs in plugins? THANKS IN ADVANCE.
Code I used is here:
var A = ['hi' , 'hello', 'C', 'RPG'];
//if (Input.isTriggered('shift') == 1)
//{
// $gameMessage.add(A[1,1]);
//}
//var X = 0;
//if (Input.isTriggered('left') == 1)
//{
// console.log('hi');
//}
while (Input.isTriggered('ok') == 1)
{
console.log('hi');
}
So I'm trying to make a plugin that triggers when a certain button is pressed (namely it can take you to a message that was previously written and vice versa), but whenever I playtest my game, it never works out for me. I'm trying to use the isTriggeered javascript code, but it doesn't seem to work unless it's in a parallel event. Is there a way/plugin of checking button inputs in plugins? THANKS IN ADVANCE.
Code I used is here:
var A = ['hi' , 'hello', 'C', 'RPG'];
//if (Input.isTriggered('shift') == 1)
//{
// $gameMessage.add(A[1,1]);
//}
//var X = 0;
//if (Input.isTriggered('left') == 1)
//{
// console.log('hi');
//}
while (Input.isTriggered('ok') == 1)
{
console.log('hi');
}