Quote:
Originally Posted by DustyPorViva
Hmm, wouldn't it be better to have player's have a relative layer variable? That way we can change the layer the player is drawn on relative to tilelayers to get more useful effects. For example, if you have a bridge drawn on layer 3, all players with a relative layer under 3 would walk under the bridge, while players with a layer of >3 would walk OVER the bridge. This way we could allow our own player to have the bridge drawn over them without having the bridge also draw over players who are actually on it.
|
No, not really. If you just changed the players' layer, then if you wanted to go back later and make a new tilelayer that draws under the player, you would have to change all of your layers around to make sure all of them stay above the player correctly. With the method that I suggested, you can easily expand your levels later and not have to worry about what the player's layer is while still achieving the desired affect.