• 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 Disaster · Feb 19, 2010 at 02:10 PM · 2d

Paper moon style 2d platforms

Hi,

Does anyone have any idea how they went about making 2d assets in Paper moon? (http://blurst.com/paper-moon/) I attempted to use planes, but obviously physics don't work correctly.

Any ideas would be greatly appreciated.

Cheers!

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by runevision · Feb 19, 2010 at 04:41 PM

Are you talking about the static objects (ground and walls etc) or the moving objects that can push the player and enemies out of the stage?

If you're talking about the static objects:

Planes should work just fine as long as they're facing the right way. Planes are normally one-sided and if an object approaches it from the inner surface direction, it can pass right through. From the outer surface the plane should be solid though and have other objects collide properly with it (if it has a collider).

If you're talking about the pushing objects:

If you want to use real collision physics, be sure to make your objects have actual volume and make them as thick as you can without them behaving wrong. If they're very thin and move fast, it might not work correctly.

However, I suspect than in Paper Moon there's large triggers around those things that you can push back and forth, and when an object enters those triggers a script applies a force the target object or similar and make it be thrown away that way rather than with normal collision physics. This would work well for situations where things are happening so fast that you can't see if the collision behaves 100% correctly anyway.

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
2
Best Answer

Answer by duck · Feb 19, 2010 at 04:46 PM

I don't know about the specifics of how they did it in paper moon, but basically for 2d games you can use whatever type of geometry you like to create the visual elements (planes, custom meshes etc), and then you should treat your collision objects as separate items.

Generally you'd want to use box colliders for flat surfaces, and you might want to use mesh colliders in the shape of extruded 2d shapes for surfaces which need more detail such as curved surfaces.

Also check out a general search of this site for questions tagged 2D, and you might be interested to have a look at Unity's 2D Gameplay Tutorial.

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
1

Answer by cregox · Feb 19, 2010 at 05:17 PM

As people already said, I also think it's probably using planes and colliders with triggers (and lots of scripting) and maybe some rigidbodies or maybe none at all (for your physics concern). Get the tutorial already mentioned by Duck and try to replace all meshes with planes and you'll have a very similar effect.

PS: dam it would be much easier if we could link to unity stuff using regular wiki code!

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

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

2D Animation does not start 1 Answer

Assets/Scripts/PlayerController.cs(32,49): error CS0126: An object of a type convertible to `float' is required for the return statement 1 Answer

Crashing issue related to changing velocity 2 Answers

2D shooter, 3d or 2d colliders? 2 Answers

2D Gameplay Tutorial - Broken 1 Answer


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