Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to achieve this

Discussion in '2D' started by HappyLDE, Sep 7, 2014.

  1. HappyLDE

    HappyLDE

    Joined:
    Apr 16, 2014
    Posts:
    56
    Hello I want to achieve the kind of graphics like in the images below. Look at how the top and sides are well drawn. Are they a big image or separate sprites put together? Any tutorial on this?


    Especially these two:

     
  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    In most of the above cases its a matter of using tiles/textures combined with custom tweakable geometry. I know rayman they have a pretty fancy custom editor which lets you draw out whole shapes and sections and it just procedurally generates what textures to fill it with to produce an `outline`. You could do this with just a tilemap but it depends how advanced you want to get.
     
  3. HappyLDE

    HappyLDE

    Joined:
    Apr 16, 2014
    Posts:
    56
    Thank you for the reply! I now start to see the repeating sprites:


    But i wonder how is the yellow lines part done, to fill the terrain? Maybe like Rayman, if i understand well it is filled with.. more sprites?

    Edit: Also how is the terrain collision done? Edge or Collision Collider on an empty object that represents the entire terrain in one level?

    Thanks!
     
    Last edited: Sep 8, 2014
  4. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Custom geometry. It's not a square tilemap, there are irregular shapes to fill the interior and texture them, then they're `decorated` around the edges with sprites at various angles. Collisions can be just colliders on the edge sprites.
     
  5. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    Hope this helps:

     
  6. HappyLDE

    HappyLDE

    Joined:
    Apr 16, 2014
    Posts:
    56
    Thanks! Thats one amazing way of making terrains and so on in 2d style, i like it. But for small games i mean teams we'll have to do it manually like we have to add sprites in the middle to fill the whole terrain etc.
     
  7. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    See also the Ferr2D app on the assetstore
     
  8. HappyLDE

    HappyLDE

    Joined:
    Apr 16, 2014
    Posts:
    56
    Oh my God this is IT! Thanks!