Momentum based scrolling inside a scrollable area

Article by Richard Davey. Posted on 3rd Jul 2015.   @photonstorm

"As promised here’s a short tutorial on implementing a scrollable area in Phaser.js that utilizes touch-based momentum scrolling! I wanted to do some type of scrolling for my achievements page and high scores page in Blox and had looked at using the Zynga Scroller. It seemed really nice but I couldn’t quite get it working with Phaser so I made my own based off some code for a jQuery scroller found here. Here’s an example of what it’ll look like when finished:"

image

Read the Tutorial