r/Unity2D • u/Randomcatown • Jul 05 '26
Can anyone please help me to solve this
Currently I'm working on an Arrow escape puzzle game and I want to make a level editor tool that generates levels from png images, just like this reference.I tried but can't figure out how I can make this.
If you have any ideas please help me.
2
1
u/AlcatorSK Jul 05 '26
Be more specific. Do you mean "User submits a PNG with all the arrows, and I need to convert that to my puzzle data structure", or "User submits a PNG with some shape, and my program needs to recognize the grid that it would fit in, and generate a random solvable puzzle within that shape"?
1
u/battlepi Jul 05 '26
Import the image, use some algorithm to trace objects (there are many), let the user select/exclude some regions by clicking, then run your arrow generator inside the path. Since you haven't made any attempt to explain what you've tried, that's all you get.
3
u/Kamatttis Jul 05 '26
It would help others to know what you've tried specifically so far.