Skip to main content
vigneshvicky
Known Participant
August 11, 2015
Question

I have a problem in creating word search game

  • August 11, 2015
  • 2 replies
  • 1039 views
Please download the attached file to view this post
This topic has been closed for replies.

2 replies

Participating Frequently
August 11, 2015

Are you asking about a different way to organize your data? Here's one approach using a 2-dimensional object.

var wordList : Object = {

"cheetah" : { "en" : "cheetahEnglish", "tamil" : "cheetahTamil" },

"panther" : { "en" : "pantherEnglish", "tamil" : "pantherTamil" }

};

trace( wordList[ "cheetah" ][ "en" ] );

trace( wordList[ "cheetah" ][ "tamil" ] );

trace( wordList[ "panther" ][ "en" ] );

trace( wordList[ "panther" ][ "tamil" ] );

/* output:

cheetahEnglish

cheetahTamil

pantherEnglish

pantherTamil

*/

kglad
Community Expert
Community Expert
August 11, 2015

use a font that supports the language you want to use and embed your font.

vigneshvicky
Known Participant
August 17, 2015

No i want to use tamil letters in the whole grid .........

i want to create a grid manually   like this

[[0, 0, 'வ', 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 'ண', 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 'க்', 0, 0, 0, 0, 0, 0, 'S',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 'க', 0, 0, 0, 0, 0, 0, 'E',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 'ம்', 0, 0, 0, 0, 0, 0, 'T',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 0, 0, 0, 0, 0, 0, 'F', 'T',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

['D', 'E', 'F', 'A', 'U', 'L', 'T', 0, 'L', 'I',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 0, 0, 0, 0, 0, 0, 'A', 'N',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 0, 0, 0, 0, 0, 0, 'S', 'G',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 'P', 'U', 'B', 'L', 'I', 'S', 'H', 'S',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],

[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];

the out put will be

kglad
Community Expert
Community Expert
August 17, 2015

and what's the problem?