Script to call a picture at title upon button?

I want to make a small snippet of code to show a picture on the screen when you press one of the four buttons on the title screen.


However, the script that is written does not run correctly. (Ignore the fact that it says extras, I haven't fixed that bit of code just yet.)


1.PNG


This is the code I have so far but it results in this:


2.PNG
I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.



What that error message means is at the time the code is ran, screen is not defined. Check the code that leads up to this code, and make sure that screen is defined and accessible from that code snippet.
Sorry about that, it didn't seem like the post would go in there but it makes sense now.


I'm confused how to add the picture as well, because I don't see screen defined anywhere.

Original thread: https://forums.rpgmakerweb.com/threads/script-to-call-a-picture-at-title-upon-button.70363/