Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
I would like to know how to put the player to have more priority than Dependents and other Events when the player AND the event (Dependent or not) are facing down (direction==2):
I just need to double check from HGSS about the priority but it is done.
Code:
def screen_z(height = 0)
return 999 if @always_on_top
z = (@real_y - self.map.display_y + 3) / 4 + 32
if @tile_id>0
return z + self.map.priorities[@tile_id] * 32
end
if self==$game_player
return z + 32 if @direction==2
end
# Add z if height exceeds 32
return z + ((height>32) ? 31 : 0)
end