I am trying to create a small mini game which would require showing pictures based on the users choice. There are 66 pictures I have available and I am trying to use the show picture script below;
screen.pictures[index].show(file_name, position, x, y, x zoom, y zoom, opacity, blend type)
I am trying to use a variable in the file name section to display picture 1-66 based on what the user input is. I have the users input stored in a variables, but I now need a way to use the variables to display the correct picture. I have tried the following methods, but receive errors;
screen.pictures[1].show([('Card'+$game_variables[99]), 0, 25, 300, 0, 50, 255, 0)
-----> Named the Picture "Card1"
screen.pictures[1].show([$game_variables[99]], 0, 25, 300, 0, 50, 255, 0)
-----> Named the picture "1"
Is it possible for the show picture script to use variables in the file_name section? is there something I am missing or syntax I have wrong? Or perhaps is there an easier way to do this?
My mini game would have a 5 card hand and with the opponent's hand if would be at least 660 if statements just to display the hands, I am trying to find a script command that would help me avoid making 66 if statements for each handslot.
Any help with this would be greatly appreciated!
screen.pictures[index].show(file_name, position, x, y, x zoom, y zoom, opacity, blend type)
I am trying to use a variable in the file name section to display picture 1-66 based on what the user input is. I have the users input stored in a variables, but I now need a way to use the variables to display the correct picture. I have tried the following methods, but receive errors;
screen.pictures[1].show([('Card'+$game_variables[99]), 0, 25, 300, 0, 50, 255, 0)
-----> Named the Picture "Card1"
screen.pictures[1].show([$game_variables[99]], 0, 25, 300, 0, 50, 255, 0)
-----> Named the picture "1"
Is it possible for the show picture script to use variables in the file_name section? is there something I am missing or syntax I have wrong? Or perhaps is there an easier way to do this?
My mini game would have a 5 card hand and with the opponent's hand if would be at least 660 if statements just to display the hands, I am trying to find a script command that would help me avoid making 66 if statements for each handslot.
Any help with this would be greatly appreciated!
