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
See if this gets you started. If you touch the ball you can pull a line out from it.
shirokuma: Could you explain how do I connect 4 balls following a specific order.
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:
Thanks —
I did this:
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?
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..
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.
By the way, it's LittleStain, not LittleStuart.. lol..
LittleStain: So sorry. It is because of the movie.
LittleStain: Just one more doubt: What is the best way to close the draw?
Develop games in your browser. Powerful, performant & highly capable.
I would count the number of dots on the screen and if the number is reached set progress to 0 or any other number.
add an event that if progress is that number either the last line is created or the last line can be made by the user..
LittleStain: It was what I had thought.Thanks
LittleStain: I found a problem in your example. Currently I can generate lines through any point without following the order. Simply connect the first. What could be done to force the order of points?
I know the example has issues.. The way I implemented the progress is not working correctly..
It's almost there though and with a bit of creativity I'm sure you can figure it out..
LittleStain, can you explain about the events in your capx file?
Im new in Construct 2