How to render floors? #671
Replies: 5 comments
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
|
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022). |
Beta Was this translation helpful? Give feedback.
-
This post has been migrated automatically from the old LITIENGINE forum (2018 - 2022).
Posted: 2019-06-12 21:31:29
User: CalvinMT [] (age: 1451 days 🔥; posts: 114)
Hi!
In the top-down view game I'm currently on, I need the player to be able to go from one floor to another. Let's say, going from 2nd floor to 1st floor by taking stairs. When the 1st floor is reached (or somewhere midway form 2nd), the 2nd floor goes invisible to allow the player to view what's on the floor he is on without having any rooms obstructed from the floor above. Without forgetting to mention that lower floors are dimmed, and visible from higher floors.
Here are ideas I had, of which I'd like opinions on:
-Use RenderType on each layer of the .tmx map. (although this solution might work, it is limited to six levels. Which doesn't necessarily mean that I'll be able to have a maximum of six floors)-Create RenderType groups we could name Floors. The idea is that a Floor with a higher value would be rendered above all other lower valued Floors. And for each of those Floors, render things like it already is rendering with the RenderTypes.-Still with the idea of Floors. But instead of having one .tmx map, I would have as many .tmx map as I have floors and name them like: ~~*~~mapname_floor_0.tmx*, ~~*~~mapname_floor_1.tmx*, etc...I would greatly appreciate any return. Let it be negative or positive.
If you even have other suggestions, or if something already exists (or is possible), please do not hesitate.
Beta Was this translation helpful? Give feedback.
All reactions