Replies: 1 comment
-
melonJS will actually follow the you can also dynamically change the sort order (which is the draw order) of any container ( like game.world) by using this (it's |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that in this example:
https://github.com/jkalkhof/urban-survivor-rpg
the occlusion is made by placing the base of an object in a layer and the remaining part of the object in another layer, and placing the player layer between them.
Is this the only possible method in MelonJS?
I have an existing tile map which I cannot modify, coming from a game where occlusion is obtained by draw order, and big objects are made of tall tiles; for example: the base tile dimension is 24x12, but if I have a wall, it's 24x48 (i.e. 3 tiles tall), so the player can move around the 24x12 base of the big tile, but when it's above the base tile, it's actually hidden behind the 2 remaining vertical subtiles of the wall.
Beta Was this translation helpful? Give feedback.
All reactions