Help with simple "cooking" minigame

Hello everyone! I noticed the old RPGMaker forum was getting shut down, so I’m here instead!

I’m trying to make a very simple “cooking” minigame where you chop a fruit. I’d like for the event to check which fruit the player has in their inventory, then display an image that changes with each button press to “chop” the fruit in question.

Here are some pictures of my messy failed attempt :sweat_smile:


There are four different fruits, so there would be a different minigame for each fruit triggered by which one the player has in their inventory. The only difference would be the image(s) displayed. I intentionally tried to do something very simple since I don’t code at all & this is just a silly gift for a friend, but I’m still not sure how to make it work, and I haven’t been able to find a proper solution :sob:

Any help would be appreciated! Thank you!

I think you’d need a few frames of waiting before each button check, but you should describe the failure in more detail.

Thank you for the reply! Here’s what it looks like in-game (mind the placeholder images lol)

Pressing Shift does nothing; pressing Enter seems to skip the chopping altogether. I added in some Wait frames (they’re a little long, but it was just to test them out) and it didn’t seem to do anything :sweat_smile:

applechoperror

Try this. I used (Input.isTriggered(‘shift’)) because the default MV will skip everything if the button got held.

Your conditional check should be placed within a loop structure. Since your requirement involves waiting for the player to press the Shift key, a loop is needed to continuously check whether the key has been pressed.

Additionally, it’s best to pair this loop with a “wait 1 frame” instruction.

Thank you both so much!! That worked like a charm! I didn’t know the button input wasn’t checked continuously :sweat_smile: Learned something new!!