Transitions with textviews

Hi,

I’ve got another question. I’m making a “non-game” app which includes textfields. Those textfields are in a popp menu that I made. This menu slides in from the bottom to the middle of the screen and slides out from the middle to the bottom. I’ve got this working by adding the textfields to a group and using “transition.to”. But the textfields are not really following the path of the group smoothly. This is the code for the transition:

transitions.addScreenIn = transition.to(addScreenGroup, {time = 1250, transition = easing.outQuart, y = 0})

When I say that it’s not smooth, I mean that everything looks fine except the textfields. They appear to be stuttering a bit.

My fps is set to 60, any solutions?

Kind regards

Bram

Native objects are not part of the OpenGL system. There was a time where you had to manually move the native.* objects. We added the ability to have native.* objects inserted into groups so they move with the group, but we have to do some behind the scenes magic to make that work. We basically have to loop over all the display objects and then the native objects to move them. This causes things to not look smooth, so we actually take a snapshot of the screen with Composer and transition the screen shot which gives it a smooth looking transition. But the native.* objects can’t be screen captured. So they have a stagger to their movement.

There is nothing we can really do about it.

Rob

Damn, that is kinda annoying. Would it be possible to hide the textfields for the duration of the transition and make them reappear when the transition is completed? I get that you could set their property to nil, but how could I “undo” that nill property when I want it to be visible?
Kind regards
Bram

Never mind that, I didn’t know you could use the “isVisible” property. Thanks for the explanation Rob!

Native objects are not part of the OpenGL system. There was a time where you had to manually move the native.* objects. We added the ability to have native.* objects inserted into groups so they move with the group, but we have to do some behind the scenes magic to make that work. We basically have to loop over all the display objects and then the native objects to move them. This causes things to not look smooth, so we actually take a snapshot of the screen with Composer and transition the screen shot which gives it a smooth looking transition. But the native.* objects can’t be screen captured. So they have a stagger to their movement.

There is nothing we can really do about it.

Rob

Damn, that is kinda annoying. Would it be possible to hide the textfields for the duration of the transition and make them reappear when the transition is completed? I get that you could set their property to nil, but how could I “undo” that nill property when I want it to be visible?
Kind regards
Bram

Never mind that, I didn’t know you could use the “isVisible” property. Thanks for the explanation Rob!