• 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
0
Question by Naszia · Sep 12, 2011 at 11:51 AM · 2dspritegameplatformer

2D platformer advice

For my next uni project i want to create a 2D platformer in Unity and so far i have only been making basic 3D games. Was wondering if there are any good tutorials out there that could help me. and im not talking about that 2.5D gameplay tutorial unity has. i want it all flat with sprite sheets and such. Thank you.

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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by CHPedersen · Sep 12, 2011 at 11:57 AM

The simplest answer is that if you want it to be completely 2D, then you shouldn't be using a 3D engine to do it. The entire basis of a 3D engine is to place cameras in space and send vertices through the graphics adapter's rendering pipeline. This approach isn't suited for true 2D games.

Try the SDL library instead. It's designed for true 2D, and if you've become accustomed to .Net and maybe even C# from working with Unity, you'll be pleased to find it has a .Net implementation. You can find it here:

http://cs-sdl.sourceforge.net/

Read about SDL here:

http://en.wikipedia.org/wiki/Simple_DirectMedia_Layer

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 Naszia · Sep 12, 2011 at 12:37 PM

Sorry but it has to be Unity as its for a uni project. was after some help to get something like this

http://www.youtube.com/watch?v=HXREh5hacV0&feature=related

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 POLYGAMe · Sep 12, 2011 at 12:44 PM 0
Share

Yeah, it's not too difficult in Unity. Here's the game I'm rebuilding with Unity as GameSalad just couldn't do it justice...

http://www.youtube.com/watch?v=13NqZ-ov2uw

it's very simple to do, just takes a bit of mucking aroundsetting up cameras etc. Actually easier than 3D, in a lot of ways!

avatar image
0

Answer by POLYGAMe · Sep 12, 2011 at 12:31 PM

You CAN do it in Unity, just takes a bit of mucking around. Flick the camera to orthographic mode and map textures (sprite sheets) to primitive objects. There is a pretty good plugin somewhere that allows you to create a custom plane with any amount of triangles, as opposed to Unity's stock MASSIVE plane. This helps keep the poly count low.

I suggest messing around with that "2.5D" tutorial and changing the camera to orthographic, and doing a bit of research on animated textures... it's not too tough. I've built 2D games in GameSalad ( a cool tool for the non-coder, but pretty buggy and slow) and I'm finding Unity just as easy now that I have my head around the code and GUI and it's MUCH more versatile :)

Comment
Add comment · Show 10 · 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 Naszia · Sep 12, 2011 at 12:34 PM 0
Share

Thanks very much. A quick question. how to i get transparency with my textures?

avatar image POLYGAMe · Sep 12, 2011 at 12:40 PM 0
Share

Use .png files. $$anonymous$$ake sure the background is transparent on the image and when you import it into Unity, you'll want to set it to transparent/diffuse in the dropdown menu for the shader in the inspector:)

avatar image CHPedersen · Sep 12, 2011 at 07:13 PM 0
Share

If that is what you were looking for, then you asked for the wrong thing, I think. You mentioned explicitly you didn't want 2.5D, but what is suggested here is the definition 2.5D, see the article at:

http://en.wikipedia.org/wiki/2.5D

As soon as you use a 3D engine to render a game where you've constricted movement to a plane, 2.5D is what you get. If you don't want that, as you started out saying, then Unity isn't the right choice. :P

avatar image POLYGAMe · Sep 12, 2011 at 09:09 PM 0
Share

But by switching to orthographic view, you DO get 2D (especially if you are mapping animated textures to simple planes). Sure, behind the scenes, it's a 3D engine, but the result is a proper 2D game. There is no such thing as pure 2D, these days... everything is done by mapping textures to polygons, even with most 2D engines. I've done a bit of program$$anonymous$$g with Windows GDI and DirectX and DirectX, despite being a 3D dev tool, is still much more efficient for 2D game dev. Long gone are the days of "real" sprites.

avatar image Naszia · Sep 13, 2011 at 01:50 AM 0
Share

Right you are! and while im here can any of you tell me how to get a sprite like character run cycle that only woks when im actually running?

Show more comments
avatar image
0

Answer by kgoswami · Sep 13, 2011 at 03:21 AM

Look up the unity forum post for OMG pirates game. They used unity to make a 2d game.

http://forum.unity3d.com/threads/34994-OMG-Pirates!

Here is the link to the forum discussion. They tell u amazing stuff about making 2d games in Unity 3d

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

2D game using sprites. 1 Answer

Spritesheet and 2D control 0 Answers

[2D] [C#] Sprite disappears after changing position 1 Answer

A Question about sprites 3 Answers

Sprite rendering problem 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