Best method to blend between two sprites ?

I have two sprites and need to blend between them to make one visible and the other invisible in case of the direction they move. What do you think is the best way to blend between the two sprites. I dont have the possibility to make only one sprite set and to select the frames to show!

Michael [import]uid: 12632 topic_id: 4945 reply_id: 304945[/import]

Can’t you use transition.to?

transition.to(sprite, {time=1000, alpa=0})
[import]uid: 10332 topic_id: 4945 reply_id: 16018[/import]

Hmm, maybe thats a possibility, will try it… [import]uid: 12632 topic_id: 4945 reply_id: 16135[/import]

I haven’t used it, but maybe transition.dissolve is what you’re looking for:

http://developer.anscamobile.com/content/transitiondissolve

It does a dissolve between two different images.

Jay
[import]uid: 9440 topic_id: 4945 reply_id: 16256[/import]

That’s neat… Had no idea it even existed! [import]uid: 11393 topic_id: 4945 reply_id: 16258[/import]

I did it with transition.to and its working, but maybe I have the problem that the non visible sprite still
takes memory. I cant kill the sprite because I need it later when the moving direction change.
transition.dissolve can be an alternative way… [import]uid: 12632 topic_id: 4945 reply_id: 16280[/import]