Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
Develop games in your browser. Powerful, performant & highly capable.
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)
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, —