Z
Zephyr Schwarzwolf
Guest
Hi everyone !
Oooook, that one is VERY tricky and I have no idea how to do that but I'm going to try my luck if someone has a solution !
In my game, I have two type of tiles for my graphics.
Some ones are flat : The floor, aaaand anything else which is flat and set on the floor.
Other ones have a height : Walls, the player, all NPCs, most of visible objects, etc...
So. Here's what I would like to do :
For objects that have a height, set : depth = object.height
Yes, the aim is to attribute several depth on a single object :
- depth - 1 on the first line pix
- depth - 2 on the second line pix
- depth - 3 on the third line pix
- etc...
I know it's a lil fetched to do a system like this one but it would be a PERFECT depth system for what I want to do. I still have some issues with the order with which my layers display (mainly with collisions). It would solve all these problems.
First of all, is it possible ?
If yes, how ?
or else, do you have a better solution ?
Thank you in advance !
Oooook, that one is VERY tricky and I have no idea how to do that but I'm going to try my luck if someone has a solution !
In my game, I have two type of tiles for my graphics.
Some ones are flat : The floor, aaaand anything else which is flat and set on the floor.
Other ones have a height : Walls, the player, all NPCs, most of visible objects, etc...
So. Here's what I would like to do :
For objects that have a height, set : depth = object.height
Yes, the aim is to attribute several depth on a single object :
- depth - 1 on the first line pix
- depth - 2 on the second line pix
- depth - 3 on the third line pix
- etc...
I know it's a lil fetched to do a system like this one but it would be a PERFECT depth system for what I want to do. I still have some issues with the order with which my layers display (mainly with collisions). It would solve all these problems.
First of all, is it possible ?
If yes, how ?
or else, do you have a better solution ?
Thank you in advance !