I exscuse my self in advance for my bad english.
However , I
have a little problem: I m coding my first game and I don’t know how to
switch the position of an image in 2 precise coorditanate. I explain
better this is my code:
function gonext(event) if event.phase == "began" then transition.to(img, {time = 10 , x = math.random(13 , 239)}) end end img:addEventListener("touch" , gonext)
In this way the Img after a ‘’ touch ‘’ switch his position between the number 13 and 239 ( so 122 , 34 , 68 ,200 … etc) But my target is to make move the img or in the position x = 13 or x = 239 (not all the values between these 2 numbers)
I hope I ve been clear xD.
Thanks in advance