Hello
I searched and i could find a post about this however if there is one,then sorry for re-posting this.
I just started to learn unity and i want to make 2d games. I started to practicing on one of my game idea which is a 2d rpg game.There is someone who teach me in person every week but my problem is a very odd one so he doesn’t know the answer and i hope someone can give me that.So my teacher had an idea for the invisible walls where the character would not be able to pass,such as like the edges of simple objects or the actual edges of the picture.
He made me to draw out the lines of the edges in photoshop and then fill all the rest to make a transparent hole where the character can move. After we imported the psd. pic and made it to a sprite and added to hierarchy, we put a polygon collider 2d component to it and it worked wonderful.
However next time when i re-made the steps to practice, the collider made only 5 vertices and i don’t understand why is that. Somehow we managed to fix that but we didn’t understand how and on my next picture no matter what, it gives the wrong outcome again.
The adding new points with shift is not the good solution for this, it have to make it by itself like on the first pic.
Can someone help me in this?
Thanks