Is there any gotoScene effect have similar effect of slideView? When user drag the scene, the scene will move according to the direction of the drag event. If the user didn’t drag a lot or user drag the scene back to the center of the screen, the gotoScene will not goto next scene.
That wouldn’t exactly be an effect, but a bit of code that calls gotoScene() with the right effect like this:
https://www.youtube.com/watch?v=dZ8wfx2t4sQ&feature=youtu.be
How to do this? Is this modified from the slideView.lua? I am checking the slideView sample
No. I wrote a small library to extend composer (library not editor) so it ‘listens’ for swipe events and loads ‘next’ or ‘prev’ scene in a chain of scenes.
PS - I was going to publish this as one of my tools, but haven’t got around to polishing it enough yet.
I released the code here for free: https://forums.coronalabs.com/topic/60980-composer-swipe-navigation-free-mini-module/
thanks!
That wouldn’t exactly be an effect, but a bit of code that calls gotoScene() with the right effect like this:
https://www.youtube.com/watch?v=dZ8wfx2t4sQ&feature=youtu.be
How to do this? Is this modified from the slideView.lua? I am checking the slideView sample
No. I wrote a small library to extend composer (library not editor) so it ‘listens’ for swipe events and loads ‘next’ or ‘prev’ scene in a chain of scenes.
PS - I was going to publish this as one of my tools, but haven’t got around to polishing it enough yet.
I released the code here for free: https://forums.coronalabs.com/topic/60980-composer-swipe-navigation-free-mini-module/
thanks!