Describe the bug
I am attempting use the VM_REPLACE_TITLE_XY method to replace a tile who's coordinates I provide via global variables. The VM_REPLACE_TITLE_XY appears to be using the index of the global variables instead of their assigned value.
To Reproduce
Steps to reproduce the behavior:
Create a logo scene called tilescene. This will be used to swap tiles.
Create an empty script.
Set two global variables. In my case, I set two variables based on the Player's position and added +1 to the X value. These variables are called VAR_CURSORX_1 and VAR_CURSORY_0.
Instead of updating the title at the position I intended, the script updates the tile at position 4,5. I believe these are the index values of my two variables. (I included a display action in my screenshot below to show this).
Expected behavior
I was hoping the script would update the tile at the position I provided, and not the use the index values of the variables.
Screenshots
Platform (please complete the following information):
OS: [Windows 10.0.19045]
App version [3.2.1]
Additional context
Apologies if this is user error, but I can't think of another way to get VM_REPLACE_TITLE_XY to read the value of the variables instead of their index.
VM_REPLACE_TILE_XY only accepts values as the coordinates and not variables. To pass variables as the coordinates use VM_GET_TILE first and then VM_REPLACE_TILE.
Describe the bug I am attempting use the VM_REPLACE_TITLE_XY method to replace a tile who's coordinates I provide via global variables. The VM_REPLACE_TITLE_XY appears to be using the index of the global variables instead of their assigned value.
To Reproduce Steps to reproduce the behavior:
VM_PUSH_CONST 3 VM_REPLACE_TILE_XY VAR_CURSORX_1, VAR_CURSORY_0 ___bank_bg_tilescene_tileset, _bg_tilescene_tileset, .ARG0 VM_POP 1
Expected behavior I was hoping the script would update the tile at the position I provided, and not the use the index values of the variables.
Screenshots
Platform (please complete the following information):
Additional context Apologies if this is user error, but I can't think of another way to get VM_REPLACE_TITLE_XY to read the value of the variables instead of their index.