Answer the question
In order to leave comments, you need to log in
How to create such a script on Unity for Android?
Hello. I'm 15 and I myself am a beginner unity developer, I created many different simple projects, and here I have a question. I want to create the same gameplay feature as in this video.
I want to create the levels myself (sculpt it from walls and obstacles) and that I also need to draw a line between the obstacles to the finish line. How to do it? How to create this line? How to make it possible to control it? I don't even have ideas. And I couldn't find anything on google. Before that, I did simple games for movement, but this is not.
Help me please!
Answer the question
In order to leave comments, you need to log in
There are many options. There are TrailRenderer and LineRenderer - time. You can change the color directly in the texture - two. You can paint with a shader - three.
You can try to arrange the drawing for the given territories...
But there are various checks, restrictions...
Graphics gPanel = panel1.CreateGraphics();
Pen p = new Pen(Color.Red, 3);
gPanel.DrawLine(p, new Point(0, 0), new Point(50, 50));
Graphics gButton = button1.CreateGraphics();
gButton.DrawEllipse(p, new Rectangle(0, 0, 50, 20));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question