PadreMontoya Posted August 23, 2014 Share Posted August 23, 2014 Does Phaser offer any concept of a "Scroll View"? Basically a box you can add content to and swipe up and down? I'm trying to create scrollable list of items. I think I can manually code a scroll view, but I just thought I'd check to see if it already exists first. Link to comment Share on other sites More sharing options...
Sebi Posted August 23, 2014 Share Posted August 23, 2014 Afaik this doesn't exist in Phaser yet, but someone made an UI Builder some time ago: http://www.html5gamedevs.com/topic/8138-game-ui-and-ui-builder-for-phaserjs/ I haven't looked at the code of the UI Builder yet. I would probably still prefer to use HTML elements for that. spinnerbox 1 Link to comment Share on other sites More sharing options...
Brad P. Taylor Posted August 28, 2014 Share Posted August 28, 2014 @PadreMontoya I have a partial solution, I'm still working out the kinks on transforms and clipping masks. Anyway what I did was create a invisible sprite which has a drag handler and a hitarea the size of the clipped scrolling area that forwards movement/timing info to the zinga scroller really any scroller would work but theirs was simple to integrate. The drag helper sprite and calls into the zynga scroller is in this gist, the full code relies on a couple other files so it isn't a finished solution for you but might help some. http://goo.gl/MsS8Ah https://github.com/zynga/scroller -bpt Link to comment Share on other sites More sharing options...
jdnichollsc Posted July 10, 2015 Share Posted July 10, 2015 My example: http://jdnichollsc.github.io/Phaser-Kinetic-Scrolling-Plugin/ VitaZheltyakov 1 Link to comment Share on other sites More sharing options...
GameDemon Posted August 30, 2015 Share Posted August 30, 2015 @Nicholls, gratz that is a very slick plugin, thanks for your hard work :-) jdnichollsc 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted August 31, 2015 Share Posted August 31, 2015 @Nicholls, gratz that is a very slick plugin, thanks for your hard work :-) It is a pleasure! Regards, Nicholls Link to comment Share on other sites More sharing options...
leetice Posted September 11, 2015 Share Posted September 11, 2015 Just want to bump this..The Zynga Scroller isn't easily ported.. just spent some time trying to get it, and couldn't get it to properly scroll, without it going exponentially as I click and held the scroll.I'm not the only one who's had a problem, as a tutorial linked from phaser on a scrolling list, also mentions issues with the zynga scroller. ( http://yusyuslabs.com/tutorial-momentum-scrolling-inside-scrollable-area-with-phaser-js/ ) And their tutorial doesn't work well either, it's super choppy and has the exponential scrolling speed issue.I'm shocked there isn't a better tutorial on this, as it seems most games have a scrollable inventory/market list.. any help would be appreciated.Also, Nicholss "Phaser-Kinetic-Scrolling-Plugin" only works on the entire world camera. He doesn't have any examples of doing it just on a Display Container / Sprite.. Link to comment Share on other sites More sharing options...
jdnichollsc Posted March 23, 2016 Share Posted March 23, 2016 Yes, only works with the camera :/ I need help to support Display containers mmm Regards Link to comment Share on other sites More sharing options...
mcolman Posted December 18, 2016 Share Posted December 18, 2016 https://github.com/mattcolman/phaser-list-view quiphop 1 Link to comment Share on other sites More sharing options...
Recommended Posts