i am displaying 16 same images from table first,then i want display second images on first images when i will click on first images (it’s means that when i will click on images then appeaser second small images on first images): please help me…
Code of first images select randomly any one:
<>
{ Name=“nimbusprit.png” },–it is first images
{ Name=“applesprit.png”},
{Name=“santrasprit.png”},
Name=“anarsprit.png”},
Name=“pearsprit.png”}
>
code of second images:
<>
local TextTable = {
{text1 = “Night.png”,index=1},{text1 = “knight.png”,index=1},
{text1 = “tap.png”,index=2}, {text1 = “tape.png”,index=2},
{text1 = “mat.png”,index=3}, {text1 = “mate.png”,index=3},
{text1 = “pip.png”,index=4}, {text1 = “pipe.png”,index=4},
{text1 = “grim.png”,index=5},{text1 = “grime.png”,index=5},
{text1 = “met.png”,index=6}, {text1 = “mete.png”,index=6},
{text1 = “mop.png”,index=7}, {text1 = “mope.png”,index=7},
{text1 = “sheep.png”,index=8},{text1 = “ship.png”,index=8},–i want display this images on first images randomly[/lua]
code of Coordinates of images:
[lua]local fruitCoordinates = {
{ x = 130, y = 75 } , { x = 80, y = 330 }, { x = 240, y = 318 },
{ x = 435, y = 240 } , { x = 950, y = 260 }, {x = 520, y = 90 },
{ x = 600, y = 426 }, { x = 700, y = 150 }, { x = 800, y = 300 },
{ x = 950, y = 680 }, { x = 700, y = 640 }, { x = 900, y = 500 },
{ x = 235, y = 600 }, { x = 275, y = 1000 } ,{ x = 420, y = 470},
{ x = 400, y = 700 }
} [/lua]
[import]uid: 87661 topic_id: 20655 reply_id: 320655[/import]