Hello,
I want to use the script call equivalent of the show picture command, which is this
screen.pictures[index].show(file_name, position, x, y, x zoom, y zoom, opacity, blend type)
I understand the parameters in the show command, I just don't understand why I have to put the images into the pictures array, since I have to define the filename. Can someone give me an example of this command?
Show picture script call example
● ARCHIVED · READ-ONLY
-
-
When you use the command, notice that it ask you an index for the picture which you then use for whenever you need to access that same shown picture? that is the same as that... Like if you put 0 on there, then you can still use the event command to modify that picture using the index 0... or also use that index on script calls too...
-
The array is already defined at the start of the game. It simply puts that picture (filename) into that position in the array (which determines whether it displays on top of other pictures or below them).
Apart from that, I'm actually not really sure what you're asking. You have to state the filename so it knows which image to show. You have to state the index so it knows which element to use. -
It's because you can use the same picture multiple times with different indexes. Also, checking the index of an array is much easier than checking the filename in the picture itself
-
Thank you for all the replies. I'm not sure how to use the command. All I want to do is simply use that command to show one picture on the screen then call the wait command then show another picture, then call the wait command again etc. In other words I want to display a series of pictures on screen.The array is already defined at the start of the game. It simply puts that picture (filename) into that position in the array (which determines whether it displays on top of other pictures or below them).
Apart from that, I'm actually not really sure what you're asking. You have to state the filename so it knows which image to show. You have to state the index so it knows which element to use. -
Then why not simply use the event commands instead of trying to complicate things by using the script conversion?
-
Out of curiosity. I want to know more about using script calls. So from what I understand from previous posts, you use the command specifying the filename, the other parameters in show command and the index. Ok let's say I have a picture named "dummy" under the Pictures folder and I want to show it using the aforementioned command. How do I call the command?
~Edit~
Nevermind found it :D . You can close this thread. -
If I'm ever confused about how a method is called, or what to put in the arguments (especially if it's something I can call from an event command), I will either just go to Game_Interpreter and add a line to print the command with all its parameters before the method is called, or go to the method itself, and add a line to print all the method arguments. Play with the console open, and there's your method call :)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.