Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Dec 03, 2015 at 11:34 PM by Klounas for the following reason:

Other

avatar image
0
Question by Klounas · Nov 13, 2013 at 09:25 PM · unity 4.34.3

With Unity 4.3, how should I import my map?

For my 2D hack and slash game I would like to import a map into Unity and set it as a background but I am very confused as to how to go at it. After that I'll to add some collision lines using the background image. Should I be using "Sprite" or is there some other more effective way?

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

  • Sort: 
avatar image
0
Best Answer

Answer by PhilRousse · Nov 13, 2013 at 10:44 PM

If you're doing a 2d game, you should use sprite. It's the most effective way.

For the collision, use the Collider 2D families:

  • Circle collider (CircleCollider2D) supporting a centroid and radius.

  • Box collider (BoxCollider2D) supporting a centroid and a size.

  • Polygon collider (PolygonCollider2D) supporting an arbitrary set of polygons. It can be initialized to the shape of a sprite by dragging the sprite onto the component.


You can also look a the 2D tutorial who offer good idea on how to work with the 2D feature:

  • [[YouTube] Unity 4.3 - 2D Game Development Walkthrough ](http://youtu.be/4qE8cuHI93c)

    [1]: http://youtu.be/4qE8cuHI93c

Comment
Add comment · Show 3 · 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 Klounas · Nov 13, 2013 at 10:59 PM 0
Share

Thanks alot for the answer. But does it matter if my sprite is huge? Like over 5k pixels.

avatar image PhilRousse · Nov 13, 2013 at 11:15 PM 0
Share

It may affect the performance of the game. But it's easier to reduce resolution than increase.

avatar image Klounas · Nov 13, 2013 at 11:19 PM 0
Share

I guess I could use some kind of tile spawning approach which would reduce the size of my maps and make it more effective. Alright thanks :D

Follow this Question

Answers Answers and Comments

17 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

Related Questions

Plugin Android that doesn't work anymore in Unity 4.3 0 Answers

Do the Unity 4.3 support top-down view? 1 Answer

Unity3d 4.3 2d learning 1 Answer

Unity 4.3 Physics 2d Change Axis 1 Answer

How do I loop an animation with Unity 4.3? 5 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