Help in connecting dots

Get help using Construct 2

Post » Sat Mar 15, 2014 1:08 am

Hi, can somebody help me in my project?

I want to connect circles like the game DOTS

I want that a straight line follow my finger when I want to connect two circles like the game I mention before

Anyone know how to do this?

Thanks
B
5
Posts: 10
Reputation: 258

Post » Sun Mar 16, 2014 3:00 pm

See if this gets you started. If you touch the ball you can pull a line out from it.
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Wed Mar 26, 2014 10:45 am

@shirokuma: Could you explain how do I connect 4 balls following a specific order.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Wed Mar 26, 2014 11:06 am

Here's an example to get your creative juices flowing. It's far from perfect and there are many other and probably better ways to get this done, but this might help you in the right direction:
You do not have the required permissions to view the files attached to this post.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Mar 26, 2014 1:01 pm

Thanks @LittleStain.

I did this:

Image

But the lines meet every time I click a new point.

Obs.: I intend to use "maxDots" to define the dots amount and close the draw. Is it correct?
Last edited by RBuster on Wed Mar 26, 2014 1:30 pm, edited 1 time in total.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Wed Mar 26, 2014 1:12 pm

I'm not sure why you do something completely different from my example.
As far as I know, I only used one global variable, but if you like this better, just roll with it..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Mar 26, 2014 1:24 pm

@LittleStain: I had done this before your example. I always try to make the scripts as I see in some examples and after read the manual. I'm sure there is always a simple solution and better than mine, but I do it to learn. I will compare your EV with mine and see where I am going wrong. Thank you.
Last edited by RBuster on Wed Mar 26, 2014 1:30 pm, edited 1 time in total.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Wed Mar 26, 2014 1:26 pm

By the way, it's LittleStain, not LittleStuart.. lol..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Mar 26, 2014 1:33 pm

LittleStain wrote:By the way, it's LittleStain, not LittleStuart.. lol..


@LittleStain: So sorry. :oops: It is because of the movie.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Post » Wed Mar 26, 2014 2:04 pm

@LittleStain: Just one more doubt: What is the best way to close the draw?
Last edited by RBuster on Wed Mar 26, 2014 2:15 pm, edited 1 time in total.
B
74
S
13
G
4
Posts: 1,006
Reputation: 8,060

Next

Return to How do I....?

Who is online

Users browsing this forum: Congrats2u, Kyatric and 27 guests