Sign in to follow this  
Taylor Ringo

Unity 2D in Unity

Recommended Posts

Taylor Ringo    177
Hey. what are the best learning resources for 2D development in Unity? i Mean Completely 2D not no 2D angled camera with 3D models crap. I need a tutorial for a 2D side scroller platformer type, and it could either C# or UnityScript, because I am really getting both languages down pact.

Share this post


Link to post
Share on other sites
Madhed    4095
Google is your friend. Just searching "Unity3d 2d tutorial" yields some usable results.
At least you will need some kind of sprite manager because unity3d itself doesn't offer one. There are a few in the asset store.

Share this post


Link to post
Share on other sites
lmbarns    460
[quote name='Taylor Ringo' timestamp='1333255240' post='4927098']
Hey. what are the best learning resources for 2D development in Unity? i Mean Completely 2D not no 2D angled camera with 3D models crap. I need a tutorial for a 2D side scroller platformer type, and it could either C# or UnityScript, because I am really getting both languages down pact.
[/quote]

Asset store as mentioned above. Only free examples included with Unity use 3d models as 2d.

Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.

Here's a thread on doing it http://forum.unity3d.com/threads/19072-Hint-Sharing-clean-2D-sprites-using-GUITexture

Share this post


Link to post
Share on other sites
Madhed    4095
[quote name='lmbarns' timestamp='1333298097' post='4927204']
Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.
[/quote]

Which is a simple way to kill performance. Unity GUI Issues one draw call per GUI element which is highly inefficient. That's the reason there are so many sprite managers and GUI systems out there for Unity.

e.g:

[url="http://www.anbsoft.com/middleware/sm2/"]http://www.anbsoft.com/middleware/sm2/[/url]
[url="http://www.tasharen.com/?page_id=140"]http://www.tasharen.com/?page_id=140[/url]

Share this post


Link to post
Share on other sites
lmbarns    460
[quote name='Madhed' timestamp='1333298861' post='4927206']
[quote name='lmbarns' timestamp='1333298097' post='4927204']
Basic way to set up sprites in Unity is using a GUITexture and offset the background based on input to slide the frames. Have to google it, but they happen inside GUITextures which should give you some direction.
[/quote]

Which is a simple way to kill performance. Unity GUI Issues one draw call per GUI element which is highly inefficient. That's the reason there are so many sprite managers and GUI systems out there for Unity.

e.g:

[url="http://www.anbsoft.com/middleware/sm2/"]http://www.anbsoft.com/middleware/sm2/[/url]
[url="http://www.tasharen.com/?page_id=140"]http://www.tasharen.com/?page_id=140[/url]
[/quote]

The link I posted shows [b]all GUITextures being drawn in a single call[/b]. GUITexture is far more efficient than any other gui elements in Unity as it's not drawn every frame.

edit:: Actually drawing all texture2d into 1 single GUITexture call.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • By dobbey
      Who are you?
      We call ourselves Dobbey. Our team currently consists of two people.
      We are both early 20's and come from Germany. At the moment this is our hobby.
      What's the name of the game and what is it about?
      The game is called Insane and it is a 2D adventure puzzle game with horror elements.
      Insane is about a scientist who has been doing human experiments for years.
      His most successful experiment is number 73, which seems to be mentally labile.
      This experiment manages to flee one day but can't distinguish between reality and imagination.
      In this game you will find a creepy atmosphere with difficult and varied puzzles.
      What inspired you?
      The style of the game is inspired by Limbo. But we were also inspired by Jump 'n' Run games and movies.
      Of course, we have also our own elements like an inventory system, butterfly effect, the "INSANE" effect, using a QR-Code..
      Which program do you use to develop the game?
      We are programming it with Unity. In our opinion, it is the best program for indie games.
      And of course we are working with Photoshop to create the graphics.
      What platform will Insane be available on?
      For PC.
      How can I support you?
      Twitter:        http://bit.ly/20POkfM    
      YouTube:     http://bit.ly/2rLXoM0
      Instagram:   http://bit.ly/2qwU2bl
      Facebook:    http://bit.ly/2p3nwRQ
      Website:       http://bit.ly/2s8buqU
       

      Here you can see some of our screenshots.

       

      (You can find the animation on Twitter/Instagram.)
       

       

       

      (You can find the animation on YouTube.)

      What do you think about it?
       
      Yo can see more screenshots or videos on Twitter, Instagram or YouTube.
    • By Liquid1Phantom
      Hello, my name is Thomas and I am currently starting up a project. 
      The project is going to be a very hardcore, and tactical FPS that is similar to Escape from Tarkov. It will be made within Unity, and will be programmed in C#. Currently, I have a Unity project started, an organized Discord setup, and as well as a very organized Google Drive. The Google Drive has art references, and plenty of folders for organization. Lastly, the payment for this project will be solely rev-share as I have no money.
      I am looking for anyone who can contribute: 2D artists, 3D artists, composers, programmers, etc.
      If you would like to help out and be of use, please email me at: thomasmunson2277@gmail.com
      Alternatively, add my Discord: Thomas#3788
    • By ilovegames
      Score points by shooting enemies! Before you is one of the best representatives of the simulator sniper games genre, with stunning graphics, quality effects, and realistic ballistics of bullets. It will not be easy to win for sure. Are you ready? Then take a sniper rifle and fight!
      Download http://falcoware.com/Sniper.php




  • Popular Now