• 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
3
Question by Sparkky · Jun 11, 2012 at 12:09 AM · 2dtilemaptileslibrary

Need help finding a library/solution for efficient 2D tilemap rendering, collisions and interaction.

Hey, I've been looking for a while, but I was really hoping somebody could point me to a library that would help me re-code my engine as fast as possible into Unity.

Attached below is a really early shot if our old AS3 engine, and where I want to get to as fast as possible in Unity.

Early Engine Image

basically the map is defined as a very large 2d array of integers generated from code I've already rewritten in C#. What I ideally need is an engine/library that can help me render the tilemap, handle collisions, have some sort of optimization (I've heard a lot about needing to minimize the draw calls with tilemaps, and my lack of familiarity with the Unity engine is the primary reason I'd like to use somebody else's code for this part, at least to start with. The naive approach would be just to render each tile as a plane, then give them a width to collide with the sprite. I've done some early research, but I was hoping somebody might have more familiarity with the current options, I am not opposed to spending some money so don't cross off solutions that cost money.

The last requirement is I would like an easy interface for retrieving which tile the mouse clicks as a lot of logic for the game involves clicking tiles.

Thanks!

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Fattie · Jun 11, 2012 at 04:51 AM

just FTR in the asset store 2Dtoolkit and similar products, handle flat sprites for you nicely - you probably are aware of those already.

Comment
Add comment · Show 1 · 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 Sparkky · Jun 14, 2012 at 01:32 AM 0
Share

Yea I've seen those but I was hoping there would be somebody with experience with one or more of these that could give me the skinny on one that handles the collisions and rendering fast and efficiently... $$anonymous$$ost of the asset store tool sets that I've found don't really explain what they'd give to a coder, more just which level editors will link up.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Beginner tutorial for 2D tiles/tilemaps? 1 Answer

How to programmatically switch tile palettes in Unity2D 0 Answers

Problem with prefabs and offset 1 Answer

Streaming in 2D tiled maps for seamless world, does this conflict with Unity's editor? Do I need to use an external editor? 1 Answer

[Tilemap] Can you spawn a Prefab (with colliter) together with a tile when placing it? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges