drag layout problems

Get help using Construct 2

Post » Wed Feb 17, 2016 6:26 pm

I'm using this tutorial: https://www.scirra.com/tutorials/560/sw ... tia?page=2 to have a drag screen scrolling with touch.
I can't get it to be smooth, it gets stuck and jerks around a lot! If you check out my example here, and try it on a smartphone for example, you can see what I mean
https://dl.dropboxusercontent.com/u/624 ... ayout.capx

In the tutorial he had inverted scrolling, and I didn't want that so I changed it like he said to substract instead of add in the lerp section. And after that it started to shake and behave strangely.
I would be SO happy if anyone could figure out a way to make it smooth and work well! I want it to scroll the same speed as the finger moves so to speak.
B
10
S
3
Posts: 62
Reputation: 774

Post » Wed Feb 17, 2016 7:41 pm

Try starting with the basic example. Go to New Project, and look for Example: Touch - Panning.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438

Post » Wed Feb 17, 2016 8:25 pm

woah thanks! I had no idea that was there, I've been googling like crazy but only found two tutorials and no mention of this one.. :) I need to start looking through the examples before I google in the future I guess.
Thanks again, it worked just the way I wanted!
B
10
S
3
Posts: 62
Reputation: 774


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 11 guests