Hi all!
I'm making a Yume Nikki fangame and I need some help with something. This is the first time I've asked for help, I pretty much figured out all my other problems, but this one stumps me.
I have a nuke effect with a countdown and I want the countdown to last ONLY while the OK is button is being held, so the countdown stops when the button is let go and the effect doesn't activate (à la the Eyeball Bomb from Yume 2kki)
I tried a Conditional Branch with "if button OK is pressed", but that triggers the event and it runs automatically whether the button is let go or not, I want it to stop when the button is let go.
Can you guys help me? I suspect some JavaScript code could, but I know nothing about that...
EDIT: I searched around and found the Javascript code "Input.is Repeated()", but it doesn't seem to work. I originally wanted this effect to happen with the shift key, but I'm using Yanlfy's Button Common Event plugin so that might interfere with it. Here's the setup I tried that doesn't work:
EDIT 2: I compiled these script calls, but still nothing happens when I press shift. I suspect Yanfly's Button Common Events plugin is interfering with the script somehow, but I don't know how to correct it.
I'm making a Yume Nikki fangame and I need some help with something. This is the first time I've asked for help, I pretty much figured out all my other problems, but this one stumps me.
I have a nuke effect with a countdown and I want the countdown to last ONLY while the OK is button is being held, so the countdown stops when the button is let go and the effect doesn't activate (à la the Eyeball Bomb from Yume 2kki)
I tried a Conditional Branch with "if button OK is pressed", but that triggers the event and it runs automatically whether the button is let go or not, I want it to stop when the button is let go.
Can you guys help me? I suspect some JavaScript code could, but I know nothing about that...
EDIT: I searched around and found the Javascript code "Input.is Repeated()", but it doesn't seem to work. I originally wanted this effect to happen with the shift key, but I'm using Yanlfy's Button Common Event plugin so that might interfere with it. Here's the setup I tried that doesn't work:
EDIT 2: I compiled these script calls, but still nothing happens when I press shift. I suspect Yanfly's Button Common Events plugin is interfering with the script somehow, but I don't know how to correct it.
JavaScript:
while( Input.isRepeated (16))
{
$gamePlayer.requestAnimation(141);
this.wait (196);
$gamePlayer.requestAnimation(140);
$gamePlayer.setTransparent(true);
$gamePlayer.reserveTransfer(2, 11, 10, 0, 0);
$gamePlayer.setTransparent(false);
}