i displayed Some image(like:a, b ,c ,d…etc).i want swipe to image, when i will click on any two image…is it possible???
‘’’‘HAPPY THANKS GIVING DAY’’’’ [import]uid: 87661 topic_id: 18218 reply_id: 318218[/import]
When you say “I want to swipe to image when I will click on any two image” can you elaborate on that a little more, please?
I’m trying to picture what you want to do.
You want to click on two images and then what?
Peach 
[import]uid: 52491 topic_id: 18218 reply_id: 69689[/import]
Hi peach pellen,
first Happy Thanksgiving Day too…
Now,i am trying build one game
[lua] local alpha = {
“alpha_a.png” , “alpha_b.png” , “alpha_c.png” , “alpha_d.png” ,
“alpha_e.png” , “alpha_f.png” , “alpha_g.png” , “alpha_h.png” ,
“alpha_i.png” , “alpha_j.png” , “alpha_k.png” , “alpha_l.png” ,
“alpha_m.png” , “alpha_n.png” , “alpha_o.png” , “alpha_p.png” ,
“alpha_q.png” , “alpha_r.png” , “alpha_s.png” , “alpha_t.png” ,
“alpha_u.png” , “alpha_v.png” , “alpha_w.png” , “alpha_x.png” ,
“alpha_y.png” , “alpha_z.png”
} [/lua]
Basically All above “Alphabet image” it will display randomly, Ex.1–(e,s,n… a), Now i want arrange on order (a,b,c…z)
when we will click on “e and a” then position should swipe like:(a,s,n…e) compare to EX.1(first one)…Please help me
[import]uid: 87661 topic_id: 18218 reply_id: 69699[/import]
I’m afraid I’m still having some trouble understanding what you want to do; you want to compare two things and then swap their positions, is that right? (So A goes to where E was and E goes to where A was if you tap both?)
Peach
[import]uid: 52491 topic_id: 18218 reply_id: 69764[/import]
I think he means that after they’re generate, you can select one letter and swap it with another. By swipe, I think he means swap. [import]uid: 103624 topic_id: 18218 reply_id: 69818[/import]
Ah that would make a lot of sense!
If so, you’d have a function so that when you tapped on a letter you marked it. Say target1 = event.target. Then when you tapped on the second you could would move event.target to target1.x, and target1.x to event.target.x.
Is this the sort of thing you’re talking about?
Peach
[import]uid: 52491 topic_id: 18218 reply_id: 69850[/import]
Hi peach pellen, Thanks for response…
Actually,first i am displaying random alphabet like:(b,z,e,f,g…to all 26 letter) afterthat i am arranging all 26 letter using swaping… i don’t have idea about swaping of letter and i show sample code too, i can’t find out.if it is possible please help me…
[import]uid: 87661 topic_id: 18218 reply_id: 70133[/import]
It might be a good idea to do some tutorials to improve your understanding before approaching a larger project like this one.
I would suggest checking out http://learningcorona.com and Corona For Newbies Part 1 - Part 4.
With a solid understanding of the basics swapping image locations should not be a problem.
Peach
[import]uid: 52491 topic_id: 18218 reply_id: 70310[/import]
Ok, thanks Peach… i am going with tutorial!!! [import]uid: 87661 topic_id: 18218 reply_id: 70367[/import]