the event doesn't run properly. It keeps on repeating the (suicide) pose, and even if I press x several times, it doesn't play the If:changetom>12. Can anyone solve this?
Is there anything wrong here?(Using Qsprite)
RPG Maker MV Supportthe event doesn't run properly. It keeps on repeating the (suicide) pose, and even if I press x several times, it doesn't play the If:changetom>12. Can anyone solve this?
what exactly was your aim?
from what i see, the player essentially would have to trigger the event 12 times while holding down the cancel button towards the end to enter that second conditional block, which i assume wasnt what you were going for?
from what i see, the player essentially would have to trigger the event 12 times while holding down the cancel button towards the end to enter that second conditional block, which i assume wasnt what you were going for?
I was aiming for an event that triggers when you press a button(in this case, the x button)multiple times. And also I didn’t understand what you mean exactly
you need a loop of some kind then.
you have an if, but not a loop. so what happens is that after the move route segment, it takes a fraction of a second to get to the end of the event. it would have only checked if the button pressed down for one specific frame once that entire time.
2 things i can think of.
A) place the button conditional branch inside of a loop, increment the variable within that loop with a small wait added, and break the loop once the variable is >= 12. downside of that is that you dont need to mash. holding the button down would be enough
or B ) you could split the event into 2 pages where the first page does the move route and flips your switch, and the second increments the variable when triggered and does your plugin command stuff when the variable is >= 12.
Should I put the >=12 in the loop or put it in a different section?
In addition to the problem with the missing loop for the button press, the entire event page will also be looping due to it being an autorun.
you'll need to switch off that page after the button presses were successful.
you'll need to switch off that page after the button presses were successful.
okay this is what I have done but the if>=changetom command still doesn't work properly. It triggers even when the button is only pressed once. How can I solve this?
because you still haven't switched off the autorun.
that event will break the loop correctly just to restart it from top
that event will break the loop correctly just to restart it from top
ohh then what should I select?
no, you need autorun here - but you need to add another page 4 with self-switch C, and activate that
before the break loop.
and that page 4 needs to be action button
before the break loop.
and that page 4 needs to be action button
Thank you! solved it
Original thread: https://forums.rpgmakerweb.com/threads/is-there-anything-wrong-here-using-qsprite.168495/