- Joined
- Sep 10, 2013
- Messages
- 155
- Reaction score
- 9
- First Language
- English
- Primarily Uses
=================================================================================================================================================================
SOLVED!!!: I found a little program that lets me resize windows in... windows. So I could resize the script call window and not deal with the line break. I'm going to leave this up, unless a moderator wants to take it down, so that people can see my solved issue. The program can be found here and instructions on how to use it are in the zip folder that gets downloaded.
=================================================================================================================================================================
Hi. I'm using the script call equivalents of event commands to be able to do what I'm doing. In particular I'm using the show pictures one
screen.pictures[index].show(file_name, position, x, y, x zoom, y zoom, opacity, blend type)I'm trying to use a game variable as the index as I am generating 16 x 16 tiles on the screen to cover it on a 640 x 480 resolution which would be 1200 tiles. So I am doing a loop with game variable #4 being a tile count that adds one every time it loops.
screen.pictures[$game_variables[4]].show("Water", 0, 0, 0, 100, 100, 255, 0)As far as I know, that should work. But the script call box is so small that it line breaks after .show so it looks like this.
screen.pictures[$game_variables[4]].show("Water", 0, 0, 0, 100, 100, 255, 0)Here is a screenshot of what it looks like in the editor.
And because of that, I get this error when the event runs.
And I know the line break is an issue because when I replace $game_variables[4] with say 1 with the line break still there so it looks like this.
screen.pictures[1].show("Water", 0, 0, 0, 100, 100, 255, 0)I get the exact same error. So because the window is so tiny, it causes a line break and I get an error. Any help would be appreciated.
NOTE: I know the event is incomplete and it will only show the water tile on the one spot. That will need more game variables which means more line breaks. I'm just trying to get past this problem I'm having before continuing on.
SOLVED!!!: I found a little program that lets me resize windows in... windows. So I could resize the script call window and not deal with the line break. I'm going to leave this up, unless a moderator wants to take it down, so that people can see my solved issue. The program can be found here and instructions on how to use it are in the zip folder that gets downloaded.
=================================================================================================================================================================
Hi. I'm using the script call equivalents of event commands to be able to do what I'm doing. In particular I'm using the show pictures one
screen.pictures[index].show(file_name, position, x, y, x zoom, y zoom, opacity, blend type)I'm trying to use a game variable as the index as I am generating 16 x 16 tiles on the screen to cover it on a 640 x 480 resolution which would be 1200 tiles. So I am doing a loop with game variable #4 being a tile count that adds one every time it loops.
screen.pictures[$game_variables[4]].show("Water", 0, 0, 0, 100, 100, 255, 0)As far as I know, that should work. But the script call box is so small that it line breaks after .show so it looks like this.
screen.pictures[$game_variables[4]].show("Water", 0, 0, 0, 100, 100, 255, 0)Here is a screenshot of what it looks like in the editor.
And because of that, I get this error when the event runs.
And I know the line break is an issue because when I replace $game_variables[4] with say 1 with the line break still there so it looks like this.
screen.pictures[1].show("Water", 0, 0, 0, 100, 100, 255, 0)I get the exact same error. So because the window is so tiny, it causes a line break and I get an error. Any help would be appreciated.
NOTE: I know the event is incomplete and it will only show the water tile on the one spot. That will need more game variables which means more line breaks. I'm just trying to get past this problem I'm having before continuing on.
Last edited by a moderator:
