My tuning idea

I have an idea for my level design. Making some unbreakable blocks get bigger after each times they get hit. The only thing is that I do not know how to do that, I’m looking for similar things but I can’t really find anything. But I’m gonna keep trying to find out. I really want to implement this into my game,
if anyone has an idea I would like to know.

Hi Kederin,
I liked your idea so I tried to implement in my game as exercise.
That’s the result

I used the Scale property in the Transform component increasing the value each times the block get hit,
plus I added a limit to keep it from growing too much

    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (CompareTag("Unbreakable"))
            if (transform.localScale.x < maxBlockScale)
                transform.localScale = new Vector2(transform.localScale.x + 0.1f, transform.localScale.y + 0.1f);
    }

Privacy & Terms