Search Unity

Angry Birds 2 style map / levels overview | Best practice?

Discussion in '2D' started by Din0m1te, Mar 22, 2016.

  1. Din0m1te

    Din0m1te

    Joined:
    Sep 9, 2015
    Posts:
    34
    Hi,

    I'm aiming to create a map scene / level overview for my 2D game, like the one in Angry Birds 2. Where you scroll horizontally to reveal more and more levels and which should be really playful, e.g. animated sprites on the map and so on.

    My question is about best practice in this case (pros / cons), whether to use the Unity UI systen to create this (I mean everything not just the UI Buttons but the Background and everything visible in the scene) or to create it like it was "a Level", I mean not putting the sprites on a UI canvas.

    Sorry, I hope you can understand, what my concern is :).

    Greetings
     
  2. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    230

    Something like that?
    Go for the UI, I´ve already done a map like that :) (vertical insted of horizontal tho)
     
  3. Din0m1te

    Din0m1te

    Joined:
    Sep 9, 2015
    Posts:
    34
    Yes, exactly like that. Thank you for your response. I tend to use the UI for it too. Did you have any issues when creating it I should be expecting?
     
  4. jc-drile77

    jc-drile77

    Joined:
    Jul 1, 2014
    Posts:
    230
    No :) everything went fine. ;)
     
  5. jonsandler

    jonsandler

    Joined:
    May 7, 2013
    Posts:
    1
    Hey, I am working on something similar but I am really new to unity. Any tutorial or advice on how to implement this? I am totally lost. Thanks!
     
  6. Din0m1te

    Din0m1te

    Joined:
    Sep 9, 2015
    Posts:
    34
    Hey. If you are really really new to Unity you might have a hard time getting this done out of the box. Get familiar with the UI "ScrollRect" component. I'd suggest using it as the base for your map. The ScrollRect will have a "Content" GameObject, which in fact is what you scroll vertically or horizontally later. Everything you place in that Content transform will be your map later.

    This is really a simple description without all the details. Make yourself familiar with ScrollRect and you will see how to create a map.

    ScrollRect Documentation:
    http://docs.unity3d.com/Manual/script-ScrollRect.html
    http://docs.unity3d.com/460/Documentation/ScriptReference/UI.ScrollRect.html

    Tutorial Video by Unity:
    http://unity3d.com/learn/tutorials/modules/beginner/ui/ui-scroll-rect