Smooth scroll with lerp (Facebook-like scrolling)

Get help using Construct 2

Post » Wed Dec 03, 2014 8:52 pm

Hello everyone!

I've been trying to tackle an issue for quite a long time, I still cannot figure out how to do this.

So lets say I have a huge inventory system, and I would like it to be compiled in a list of objects and text, how would I approach it to act like I am scrolling through my Facebook news feed? I am intrigued by how smooth and fluid the news feed is on Facebook and it inspires me to create a system to allow this kind of function in one of my mobile apps.

I got the idea to use the clamp function in Construct, with the drag and drop behavior, you can create a scrolling effect but what is missing is the lerp functionality, where it feels fluid whenever you scroll slower, faster and let go it will still keep scrolling and come to a slow stop, just like a lerp function.

This current scroll system works, but it is not what I want. It is not very fluid.

Image

Any suggestions on how we can achieve this? I plan on sharing it with the rest of the community as well.

Thank you in advance! :)
B
17
S
6
Posts: 348
Reputation: 2,608

Post » Wed Dec 03, 2014 10:04 pm

Can this help you?
You do not have the required permissions to view the files attached to this post.
B
11
S
3
Posts: 13
Reputation: 717

Post » Wed Dec 03, 2014 10:28 pm

Oxnard wrote:Can this help you?


You have the correct idea, I just want to incorporate it with the clamping function like my first example. I just don't know to use the drag and drop behavior with it.
B
17
S
6
Posts: 348
Reputation: 2,608


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests