how do i make make lines

Get help using Construct 2

Post » Mon Feb 20, 2012 8:48 pm

hey, i want to make a line that show the path of the mouse... how can i do that?
B
24
S
5
G
4
Posts: 48
Reputation: 5,227

Post » Mon Feb 20, 2012 8:53 pm

You'll probably want to put a dot at mouse.X every tick.
Of course, there are more advanced ways to do it more accurately, but these are more complex and use up more computational resources.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

Post » Mon Feb 20, 2012 9:00 pm

and another question: can i connect/link spesifics dots to a specific object??
B
24
S
5
G
4
Posts: 48
Reputation: 5,227

Post » Mon Feb 20, 2012 9:34 pm

You should say what you are trying to achieve more precisely.
There are loads of ways to do different things.

Maybe this capx will help you do what you want.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
278
S
104
G
86
Posts: 7,313
Reputation: 84,306

Post » Thu Feb 23, 2012 8:26 pm

my game is this, they are holes with colors and color balls entering the screen. every X second enter new ball and the player should make a path to each ball to his hole (by the color of the ball and the hole)
the path of the ball is set by clicking the ball with the mouse and moving with the mouse to the hole.. i want the path to be draw and the ball to folow the path. and the path that the ball pass should be erase. a problem that i need to solve is how only the ball that belong to the path will erase his path onky, but not other pathes that belongs to another balls..
B
24
S
5
G
4
Posts: 48
Reputation: 5,227


Return to How do I....?

Who is online

Users browsing this forum: maximtab and 2 guests