Thanks. Actually what I want is to get letter shaped texture by placing multiple objects in that respect.
Right now I am doing is
function Z(view) print("LETTER Z") local x = 500 local y = 300 local myImage = display.newImage(view, "balloon.png" ) myImage.x = x myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 40 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 80 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 120 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 160 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 200 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 240 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 280 myImage.y = y myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+260 myImage.y = y+50 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+210 myImage.y = y+90 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+170 myImage.y = y+130 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+130 myImage.y = y+170 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+90 myImage.y = y+210 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+50 myImage.y = y+240 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+40 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+80 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+120 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+160 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x+200 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 240 myImage.y = y+290 myImage.myName="letter"; local myImage = display.newImage(view, "balloon.png" ) myImage.x = x + 280 myImage.y = y+290 myImage.myName="letter"; end
In this Z function I am placing multiple object by placing balloon image multiple times in such a way that all these will form letter Z shape.
But for this I had to hardcode for placing each object. And for all 26 letters I had to do same hardcoding.
Please tell me if there is any solution for this problem.
Thanks in advance.