D
D
durnevdanya2017-04-24 20:25:00
C++ / C#
durnevdanya, 2017-04-24 20:25:00

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

2 answer(s)
G
GavriKos, 2017-04-24
@durnevdanya

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.

S
Sergey Null, 2017-04-24
@MaDestro

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));

Something like this to arrange the drawing ...
But this is probably not accurate ... Maybe there is a "better" idea ...
At least I considered this a possible solution, but I have to write a lot of code ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question