Detect transition.to( ) ?

I use transition.to() for some animate

and I want to detect object’s animate that true or false

How I can ?

Thank

Will this work for you?
obj.tranOn = true
transition.to(obj, {time =2000, x= obj.x+ 100, onComplete= function() obj.tranOn = false end )

Thank you, Mr. scottrules 44

Are you any idea?

?

Do you have any idea?

obj.tranOn == true

it’s not work

thank you

In what way will this not work. You will have to modify the code above to make it work for you. You gave me not code to work with so I just made up some attributes.

Thank you Mr. scottrules44

Will this work for you?
obj.tranOn = true
transition.to(obj, {time =2000, x= obj.x+ 100, onComplete= function() obj.tranOn = false end )

Thank you, Mr. scottrules 44

Are you any idea?

?

Do you have any idea?

obj.tranOn == true

it’s not work

thank you

In what way will this not work. You will have to modify the code above to make it work for you. You gave me not code to work with so I just made up some attributes.

Thank you Mr. scottrules44