Lines connecting letters in game like word search

Get help using Construct 2

Post » Mon Feb 10, 2014 6:15 pm

Hi

I want to create a game similar to word searches, with letters scattered randomly on the screen. I wonder if anyone would have an idea how I can generate the lines that will appear between the letters and connects one letter to another, until the word is formed.

Thank you.
B
74
S
14
G
4
Posts: 1,018
Reputation: 8,139

Post » Mon Feb 10, 2014 6:52 pm

Using tiledbg
setting it's position to letter1
setting it's angle to angle(letter1.x, letter1.y, letter2.x, letter2.y)
setting it's width to distance(letter1.x, letter1.y, letter2.x, letter2.y)
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 Feb 12, 2014 9:22 am

Hi @LittleStain (new avatar/same help)

Thanks for the suggestion. I tried to apply this but not work (certainly because I didn't understand what to do).

In fact, I wish the line ends stay stuck on the last letter I clicked and the mouse cursor until I click on the last letter of the word.
B
74
S
14
G
4
Posts: 1,018
Reputation: 8,139

Post » Wed Feb 12, 2014 8:34 pm

I made a word search capx a while back here:
http://www.scirra.com/forum/word-search-game_topic44971_post281704.html#281704

The lines are pretty much done like LittleStain said.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Post » Sat Feb 15, 2014 1:38 pm

Thanks, @R0J0hound.
B
74
S
14
G
4
Posts: 1,018
Reputation: 8,139


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests