Search Unity

Block Minecraft 2d

Discussion in 'Scripting' started by Magixapps, Oct 3, 2017.

  1. Magixapps

    Magixapps

    Joined:
    Mar 4, 2017
    Posts:
    55
    Hi,
    i want create a little 2d minecraft game, but so lot of block in my game, its really slow when you play...

    what is the best solution? In my game i can break every block i want.

    i have see that solution but i not know what is it exactly:


    Thank you
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Impossible to answer with what you've told us. Run the profiler. What part of your code is taking the most time to execute? It could be related to something else entirely.
     
  3. McDev02

    McDev02

    Joined:
    Nov 22, 2010
    Posts:
    664
    That depends on a lot of factors and how your blocks are rendered. Maybe you can work with individual blocks but they have to be properly culled and batched. Show us how your scene looks like and how the blocks are displayed. Are they sprites or mesh objects?