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.
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)
Develop games in your browser. Powerful, performant & highly capable.
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.
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.
Thanks, —