Is it possible to use a transition.to to move an image in steps like for example instead of always moving the image 1 pixel after another the image should jump 5 pix to the next pos, then 5 pix to the next and so on until the goal position of the transition is reached?
You might want to just do it manually if you want to achieve that.
Here is example:
local obj = display.newImage("Images/obj.png", display.contentCenterX, display.contentCenterY) function moveObj () obj.x = obj.x + 5 end timer.performWithDelay(10, moveObj, 10)
Here it will move the image every 10 ms 5 pixels and keep doing that for 10 times.
That is just an example.
Thanks for the code! Much appreciated!
You are welcome. Can you tell me if it worked?
You might want to just do it manually if you want to achieve that.
Here is example:
local obj = display.newImage("Images/obj.png", display.contentCenterX, display.contentCenterY) function moveObj () obj.x = obj.x + 5 end timer.performWithDelay(10, moveObj, 10)
Here it will move the image every 10 ms 5 pixels and keep doing that for 10 times.
That is just an example.
Thanks for the code! Much appreciated!
You are welcome. Can you tell me if it worked?