The following content comes from Google Translate, please forgive me.
This is a game similar to Sokoban, so there are blocks and designated locations.
And the character can stand on the block.
The current method when a character is standing on a square is to change the player picture and adjust the layer of the event picture.
(The "一般角色之下" in the picture means "Under the player character")
At first, I noticed the event ID, so I made the location first and made the block to ensure that even if the block changes to the lower display, it will not be overwritten by the location.
But after adding a new cube, I noticed that this method is not feasible.
Because the new location will still cover the previous cube.
Unless a few hundred events are reserved first, this problem will always appear, but this is obviously not a good solution.
So there are two ideas:
●When the events are also under the player, the priority can be specified regardless of the preset event ID.
●Let the player become the upper display, so that the square can be fixed at the same as the player, and will not be covered by the location.
But in this way, I'm afraid that there will be problems with players in the passable area, such as walking to some impassable positions.
(If only the picture becomes the upper display, and the moving conditions remain the same, that's fine.)
This problem should be encountered more or less when making decorations. Is there any way to solve ait?
2021.06.12
I tried to use Event Spawn to make the square generate another square image in place, there is no visual problem.
But this way the amount of events on the map has increased, and it always feels unwise...
This is a game similar to Sokoban, so there are blocks and designated locations.
And the character can stand on the block.
The current method when a character is standing on a square is to change the player picture and adjust the layer of the event picture.
(The "一般角色之下" in the picture means "Under the player character")
At first, I noticed the event ID, so I made the location first and made the block to ensure that even if the block changes to the lower display, it will not be overwritten by the location.
But after adding a new cube, I noticed that this method is not feasible.
Because the new location will still cover the previous cube.
Unless a few hundred events are reserved first, this problem will always appear, but this is obviously not a good solution.
So there are two ideas:
●When the events are also under the player, the priority can be specified regardless of the preset event ID.
●Let the player become the upper display, so that the square can be fixed at the same as the player, and will not be covered by the location.
But in this way, I'm afraid that there will be problems with players in the passable area, such as walking to some impassable positions.
(If only the picture becomes the upper display, and the moving conditions remain the same, that's fine.)
This problem should be encountered more or less when making decorations. Is there any way to solve ait?
2021.06.12
I tried to use Event Spawn to make the square generate another square image in place, there is no visual problem.
But this way the amount of events on the map has increased, and it always feels unwise...