Storyboard Custom Transitions?

Hi,

I’m using “fromBottom” for the transition from scene A to scene B. Now, I want the same transition in reverse when I go from B to A, but I can’t find the right transition for that.

When going from A to B, I want B to slide over A. This works well with “fromBottom”. Then when going from B to A, I still want B to slide over A, just in reverse. In other words, scene A should not move at all. Only scene B moves.

Is this possible with the storyboard API?

Thanks,
George

Maybe you can use overlays?

That’s pretty cool, I did not know that existed.

Giving it a quick look, I’m not sure if it’s going to work for me. That is only because when the “overlay” is active, in addition to close the overlay I will also have other buttons in it that take the user to other scenes. When I get back to my first “overlay” I want to still go back to the original scene that activated the overlay.

I’ll give an example… I’m in a room, and there’s a book on the table. I click on the book and so the book slides from the bottom over the original scene (making it seem like I picked it up). Then when I’m in the book scene, I can flip pages and each of those pages is a scene. To go back to the room scene, I want the user to go back to the first page, and click a back button, which slides the book over the room scene towards the bottom.

That was just an example, not the exact same thing I’m trying to do, but the idea is the same.

What do you suggest?

Well. I guess you will have to write your own scene manager class for the book pages then. 

I think it is not possible with overlays, but I have not used storyboard much; so I’m not 100% sure.
 I use director class, and write my own classes if something new is required. 

 

OK, thanks.

Does anyone know if there’s a way to specify custom transitions? It would be a great addition to the storyboard API if there isn’t, I think. 

Maybe you can use overlays?

That’s pretty cool, I did not know that existed.

Giving it a quick look, I’m not sure if it’s going to work for me. That is only because when the “overlay” is active, in addition to close the overlay I will also have other buttons in it that take the user to other scenes. When I get back to my first “overlay” I want to still go back to the original scene that activated the overlay.

I’ll give an example… I’m in a room, and there’s a book on the table. I click on the book and so the book slides from the bottom over the original scene (making it seem like I picked it up). Then when I’m in the book scene, I can flip pages and each of those pages is a scene. To go back to the room scene, I want the user to go back to the first page, and click a back button, which slides the book over the room scene towards the bottom.

That was just an example, not the exact same thing I’m trying to do, but the idea is the same.

What do you suggest?

Well. I guess you will have to write your own scene manager class for the book pages then. 

I think it is not possible with overlays, but I have not used storyboard much; so I’m not 100% sure.
 I use director class, and write my own classes if something new is required. 

 

OK, thanks.

Does anyone know if there’s a way to specify custom transitions? It would be a great addition to the storyboard API if there isn’t, I think. 

Not sure if you’re still looking for a way to do this, but thought I’d share since I found this thread when searching for a solution.  Have a look at the info I posted here:

http://forums.coronalabs.com/topic/42971-storyboard-transition-easing-options/

You should be able to accomplish what you were trying to do by creating custom versions of the ‘fromBottom’ and/or ‘fromTop’ effects and adjusting the ‘to’ or ‘from’ portion as needed.

Not sure if you’re still looking for a way to do this, but thought I’d share since I found this thread when searching for a solution.  Have a look at the info I posted here:

http://forums.coronalabs.com/topic/42971-storyboard-transition-easing-options/

You should be able to accomplish what you were trying to do by creating custom versions of the ‘fromBottom’ and/or ‘fromTop’ effects and adjusting the ‘to’ or ‘from’ portion as needed.