How can I change the z positions of the layers on a tile in the game map?
tile z
Learning Ruby and RGSSxYou can't. The tilemap class is not available for modifying.
ok so how do I go about changing the players z.
A character's z position comes from the screen_z method.
This returns priority_type * 100, where priority_type 0 is below characters, 1 is same as characters, and 2 is above characters. So screen_z will be 0, 100 or 200.
To change it for the player, you could add a def screen_z method in the Game_Player class and do whatever calculation is needed. Or if whatever you want to do applies to events, followers and vehicles as well, just make the change in the original Game_CharacterBase method.
This returns priority_type * 100, where priority_type 0 is below characters, 1 is same as characters, and 2 is above characters. So screen_z will be 0, 100 or 200.
To change it for the player, you could add a def screen_z method in the Game_Player class and do whatever calculation is needed. Or if whatever you want to do applies to events, followers and vehicles as well, just make the change in the original Game_CharacterBase method.
Yeah that's what I'm doing now, I just figured that out and was abut to post it. Thank again Shaz, as always.
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.
Original thread: https://forums.rpgmakerweb.com/threads/tile-z.20952/