[DEMO] Momentum/Inertia Scroll with Grid Snap
netdzynr
Member Posts: 296
For folks looking for a way to do momentum scrolling (sometimes called inertia scrolling or weighted scrolling), I posted a game project that demonstrates one method of doing this. Momentum scrolling occurs when you drag a set of items in a direction and the set gradually slows to a stop (like most lists on the iPhone/iPod Touch). This project has a bunch of hard coded attributes and is not easily customized, but is available to take apart for anyone who is feeling brave. I hope to make a more easily used version at some point with attributes that are more "fill-in-the-blank" but it's a fairly complex routine.
Unfortunately, the project is iPad sized and Creator won't let me publish it to the GS site, so you'll have to download it from here.
Feel free to use wherever.
Unfortunately, the project is iPad sized and Creator won't let me publish it to the GS site, so you'll have to download it from here.
Feel free to use wherever.
Comments
going to take a look/see!
MH
One problem I found was that it didn't work on an actual device. I'm sure there's a good reason.
I mean, it starts up, the balls appear, but nothing actually works
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Is it iPad only? If so, I must have missed that, but it displays fine - just won't move!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io