How do I scroll or swipe layer up ?

Get help using Construct 2

Post » Sat Apr 22, 2017 9:21 pm

Hello all,

I have read many of other posts regarding scrolling or swipe layers but couldnt find any that slide up. Is there anyone who can help me with this ?
B
16
S
7
G
4
Posts: 17
Reputation: 3,289

Post » Sat Apr 22, 2017 9:36 pm

https://www.scirra.com/tutorials/560/sw ... th-inertia

Remove the x related expressions and leave only y.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Sat Apr 22, 2017 11:44 pm

oosyrag wrote:https://www.scirra.com/tutorials/560/swipe-based-smooth-scrolling-with-inertia

Remove the x related expressions and leave only y.


Thanks but this still scroll down. I want to go up. :?:
B
16
S
7
G
4
Posts: 17
Reputation: 3,289

Post » Sun Apr 23, 2017 1:51 am

On the every tick event, add the system compare two values condition - CurTouchY < PrevTouchY
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Mon Apr 24, 2017 3:18 pm

oosyrag wrote:On the every tick event, add the system compare two values condition - CurTouchY < PrevTouchY


I was trying it but something doesn't work. Can you please help me with .cap and I will be very thankfull :D
B
16
S
7
G
4
Posts: 17
Reputation: 3,289

Post » Mon Apr 24, 2017 5:32 pm

Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Wed Apr 26, 2017 10:52 am

oosyrag wrote:https://www.dropbox.com/s/bu2xhnmuk8axtfy/SwipeScrollDemo-uponly.capx?dl=0


Thanks but this just stack on screen. Couldn't scroll it at all. Thanks on help anyhow. :mrgreen:
B
16
S
7
G
4
Posts: 17
Reputation: 3,289


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi and 18 guests