When making a 2D Pokémon game, I just faked elevation by putting mountain tiles underneath the land. Now my tiles are 3D models, so I'm using layer properties to define their elevation. What I don't know though is how to generate a 'mountain' around them.

The tilemap is kinda' like this:

Layer 1: Layer 2: Layer 3:
....     \\\\     \\\\
....     \..\     \\.\
....     \..\     \\\\
....     \\\\     \\\\

Layer 2 has y-offset set to 1, and Layer 3 has y-offset set to 2. All they do right now is float in the air. What I'm trying to do is render a mountain around them.


closed as unclear what you're asking by Kromster says support Monica, Josh Jan 11 '15 at 17:28

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ What have you tried? What does it mean to "add mountains?" Do you just need to know how to put them in your sprite sheet? How to generate them in a level? Et cetera. \$\endgroup\$ – Josh Jan 11 '15 at 17:29
  • \$\begingroup\$ Sorry! I made some progress, but I'm stuck again. \$\endgroup\$ – Shien Jan 14 '15 at 5:25

You can create 3D ""tile"" objects.

During Loading read your 2D tile map and wherever there's a mountain tile paste your 3D mountain object over it.

You can make this very fancy and detect the size of mountainous areas pasting various large mountains objects.

  • \$\begingroup\$ Yes, that's what I'm doing right now =). I have a tilemap, and for each tile, I place an object that whose size and vertical offset in the obj file. What I meant was - how could I put, say, a "grass" tile on that mountain? \$\endgroup\$ – Shien Jan 10 '15 at 16:35
  • \$\begingroup\$ You'll have to use multiple tile layers then. \$\endgroup\$ – Stephane Hockenhull Jan 10 '15 at 16:44
  • \$\begingroup\$ Any idea how I'd go about making the mountain underneath the grass? =) \$\endgroup\$ – Shien Jan 14 '15 at 5:28
  • \$\begingroup\$ You'll need to change the texture on the mountain for this or make 2 mountain "tiles". \$\endgroup\$ – Stephane Hockenhull Jan 14 '15 at 15:43
  • \$\begingroup\$ Okay so I just ended up using some basic array manipulation to get the corners of the 'mountain' and change the model for those. Thanks for the answer and elaboration! \$\endgroup\$ – Shien Jan 15 '15 at 15:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.