Programming a Button to Skip Instructions

Hi, My son would like to program the ability for pressing Button B to skip the instructions in Jumpy Platformer. I attached the code that related to the instructions. Please let me know if you need to see anything else. He would like the user to be able to Press Button Be and then see that he or she is going to “Level 1.” If you can explain the proper programming, I’d appreciate it.

1 Like

For this code to skip the instructions, you would have to be holding the B button down when the Introduction function is called, which I would assume is either when the game starts or after a title screen. Though there isn’t a very easy way to make the B button register once you are already inside a dialogue box, one option would be to put an If block like:

If ( not (is B button pressed) )

Around the code in that small “Show instruction” function. That way, you could hold B and no instructions would be shown. You would probably still have to see one, then hold B while you press A for it to skip. That would also skip the “level 1” and “good luck” messages, so it’s not the best option. Another option would be to put that If block around every “give instruction” function call that you want to skip, which would be very annoying to do. You would still have to be holding B to skip them.

The last option is pretty obvious, but since it’s a personal project, you can just get rid of the dialogue entirely, though that’s definitely not a very fun answer :thinking:

Anyways, I hope this helps!

Hi Woof Woof, Thank you very much for your response. I’m also curious if it might be able to use a Mini Menu like the one detailed in this video to give the user an option to see the instructions or skip them. If so, any insight you have into programming one of these mini menus would be appreciated. https://www.youtube.com/watch?v=pICE1sLxhY4&t=447s

1 Like

Oh wow! Looks like I left you hanging here, I guess because you didn’t @ me, so I didn’t get notified!

To answer your question, I believe there is a block that looks like “< ask (“ ”) + >” in the Game blocks tab. You should be able to put this in an If block and the text in the block will be asked to the player and they can answer yes or no with the A or B buttons. Then the If block will run only if the player presses A, and will be skipped if the player answers B!