**** move object more smoothly ****

hi (attached code)

i am moving an object around the screen using an array

however it is very flickery

i know changing the time and delay variable makes it a bit better but the object still does flicker

is there any way the code can be changed to make movement of object smooth

thankyou so much

Hi,

It looks like it’s flickering because you’re only creating a single image and then starting many transitions on it.  That means you have many transitions fighting over a single object, and your single object flickers about screen as it X/Y position is constantly shifted.

To create the effect of moving multiple images, you need an approach like:

--For each object in the people table... for i=1, #people do   --Create an image   local img = display.newImage("images.jpg")   --Transition it   transition.to(img, {time=5 ... etc ..}) end

This will create a separate image for each object in your person array, then move it.

Please do not put ****'s in your post titles.

Rob

Hi,

It looks like it’s flickering because you’re only creating a single image and then starting many transitions on it.  That means you have many transitions fighting over a single object, and your single object flickers about screen as it X/Y position is constantly shifted.

To create the effect of moving multiple images, you need an approach like:

--For each object in the people table... for i=1, #people do   --Create an image   local img = display.newImage("images.jpg")   --Transition it   transition.to(img, {time=5 ... etc ..}) end

This will create a separate image for each object in your person array, then move it.

Please do not put ****'s in your post titles.

Rob