Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by LionTurtle1017 · Feb 01, 2014 at 08:26 PM · tilemaprpgisometric

Tile-Based 2D Isometric RPG. Building a map?

Hey All,

I'm new to unity.

I'm working on a tile-based 2D RPG game in isometric perspective, similar to final fantasy 2 and chrono trigger. The art style is 16x16 pixel sprites, and 16x16 square tiles for the map. I am making the game in the 3d mode, so I can achieve isometric perspective (while the game is really 2D, if that makes any sense).

After quite a bit of messing around in unity, I managed to set up an isometric camera using the "orthogonal" mode, set x:30 y:45. However, I don't know the first thing about how I would actually set up the tile map that the characters would go around on.

I've tried making a "plane," and using one of my tiles to cover it, but this just results in that same tile repeated over and over again. This is fine for an empty, monotonous landscape, but I need to create a map that I can edit, placing a variety of different tiles down in chosen places. I know that I could technically do this by creating a ton of planes, each with a different tile, and arranging them into the map I want, but doing that would be extremely time consuming and impractical.

alt text

This is a screenshot of the plane that has the repeated tile on it. The problem is, I have no way of placing a single tile down.

alt text

It works in isometric perspective, but there is no way for me to add other things to the map (buildings, other tiles, etc.)

I also want to alternate between different grass tiles, not just have a single one repeated, but with my limited knowledge this seems pretty much impossible.

Any ideas on how I could pull this off?

screen shot 2014-02-01 at 11.57.22 am.png (225.3 kB)
screen shot 2014-02-01 at 11.57.30 am.png (201.6 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eric5h5 · Feb 02, 2014 at 01:08 AM 0
Share

It would be best to create or buy a tile system. The Unity editor isn't really appropriate for tile-based levels.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Halleflux · Feb 01, 2014 at 08:44 PM

You could use a single background plane, and then have other smaller tiles put on top of the background tile (just slightly above, couldn't be noticed). This would be a good setup for your basic level. I'm afraid that there isn't really any good way to get by the 'placing a few hundred tiles' problem. It's going to take a while.

One idea is to create your own inspector tool, I think it's possible to allow changes when you play to carry over back to the edit mode if you setup your serialization correctly (Link to thread on serialization). This would allow you to interactively put down tiles, which, once you have the script setup, would be a massive time saver. However, if you aren't making that big of a game, it's probably more effective to just do it by hand.

As for different grass textures... You could create a new texture, which would be one texture in the top left and bottom right, and the other in the top right and bottom left, like this:

 10
 01

This would allow you to loop the two texture over and over. Another idea is to use a texture with transparency (as in, it has black around the edges, fades in slightly) and an appropriate shader to overlay onto a background, which would give a more seamless grass transition for areas.

I hope I've been clear enough on this and that it help out and gives you some ideas. Best of luck! =)

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LionTurtle1017 · Feb 01, 2014 at 09:03 PM 0
Share

Thanks! I'll definitely try your suggestion. The custom inspector tool is something I might consider in the future when I actually get to making the entire game map, but for now the hand placement method should work. It just seems strange that Unity wouldn't have any sort of "map editing" tool, considering the number of games that operate that way.

Really appreciate the response!

  • Thanks

avatar image Halleflux · Feb 02, 2014 at 12:44 AM 0
Share

I personally haven't looked into it, but you could create a custom file, and use an editor tool that you make in Unity to make maps and export them as that file, which you then interpret through scripts, and place objects where needed and such.

avatar image LionTurtle1017 · Feb 02, 2014 at 02:19 AM 0
Share

Something I had considered was using a map editor such as "tiled," if you've heard of that, to create a map outside of unity, and then import that into unity where I would actually do all the coding for the game. However, map editors like that aren't extremely flexible and will only export in strange filetypes (others on this forum have had issues with actually putting maps they made into unity). I personally haven't had that much experience in unity, which I see to be one of my main problems, but I think creating and editing the maps within unity as you are suggesting would be a good idea.

However, I'm not exactly clear on the process of actually creating or obtaining the proper editor tool to make the maps in the first place.

avatar image Halleflux · Feb 02, 2014 at 08:08 AM 0
Share

Custom Editors in Unity That is one place to start, but you will need to do a large amount of research in order to actually get what you want. There are plenty of tutorials out there, though, so just search up "Custom inspector Unity" or something along those lines and you will come up with plenty of stuff to get started with.

Best of luck!

avatar image LionTurtle1017 · Feb 02, 2014 at 05:36 PM 0
Share

I will definitely try that! Thanks for all your help and suggestions. They've proven quite useful to me.

avatar image
0

Answer by Mizipzor · May 28, 2014 at 09:35 AM

Rather than spending time on implementing your own map editor within Unity I would suggest that you use Tiled, a tile map editor, and spend the time on writing code that imports those maps instead. I found a project on GitHub that seems to have the foundation for importing Tiled maps. For other ways to actually handle and render the tile map in Unity you could probably find some snippets of use in my library UnityTileMap.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by RIw · Feb 15, 2015 at 09:22 AM

Why don't you just make this map in Tiled and then drag n drop to Unity and Scale it ?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image youblistermypaint · Aug 20, 2015 at 08:17 PM 0
Share

Can you now import tiled maps into Unity without any plugins?

avatar image Eric5h5 · Aug 20, 2015 at 11:24 PM 0
Share

No.       

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Move towards move very fast independent of the speed 1 Answer

Isometric 2.5D RPG: Advice 7 Answers

2d isometric tile/grid map 1 Answer

How can I do if I want to make a diamond isometric tilemap with 2DToolkit? 1 Answer

How do 2D tilemaps relate to game logic? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges