When I moved table's object to somewhere and bring back, the object did strange

I made the table which consists of objects that has touch event.
When object was touched will be moved to out of the screen. When the character moved to some specific point the moved objects will be brought back.

The second time that the object(the one was touched) was brought back, the touch event did not work.Not only eventhandler which had problem, the position was also not correct according to value that I have set.
If I never touched the object before, everything will be fine.

I do not think that moving object in table will cause this trouble. I think it because of physic body. I tested in both “dynamic” and “static”. The position setting is correct in only “static” mode. But eventhandler(touch) in both of them do not work.

need some help…do I understand something wrong?
[import]uid: 65906 topic_id: 15313 reply_id: 315313[/import]

It shouldn’t make any difference having them in a table or not.

Are you removing the touch listener when they go off screen and forgetting to re-add it ? Are you deleting the table reference and not re-referencing it?

I’m sure it will be one of those, maybe make up a working sample (just code) of what your doing and post it up and the answer will be a lot clearer :slight_smile: [import]uid: 84637 topic_id: 15313 reply_id: 56529[/import]

oh, I found my mistake. Thank you, Danny. It is actually my logic is wrong. I set reuse objects in enterframe so that why I cannot move the objects.

However, the physic body is still troublesome. I found that before I reuse the objects, I need to reset object’s properties such as bodyType = “static”, rotation = 0,…etc to make it like a new one. Then I set the new position for reuse objects and everything is fine.

Hope my experience will help someone.
I want to check that this post got answer, but I don’t know how… [import]uid: 65906 topic_id: 15313 reply_id: 56686[/import]