How do I invert the scrolling

Get help using Construct 2

Post » Thu Jan 23, 2014 7:51 pm

In this example I am trying to move a page when a user swipe the finger up and down.

The problem is that I can only make it work one way. I need to invert how it is currently scrolling. What is up should go down and the other around.

PAGE FINGER SWIPE CAPX


Original code can be found at
http://www.scirra.com/forum/touch-scrolling-with-finger-swipe_topic68812.html
B
122
S
50
G
24
Posts: 401
Reputation: 22,462

Post » Fri Jan 24, 2014 6:17 am

well, you were close...

www.rieperts.com/games/forum/page-finger-swipe-2.capx
B
96
S
33
G
20
Posts: 438
Reputation: 17,665

Post » Thu Jan 30, 2014 3:32 pm

Now I have another issue.

How can I block it from scrolling up and down when I scrolling side ways swiping the screen?
B
122
S
50
G
24
Posts: 401
Reputation: 22,462

Post » Thu Jan 30, 2014 5:45 pm

when scrolling side to side set a variable, have the scroll up/down event check that variable as one of it's conditions.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Thu Jan 30, 2014 9:56 pm

Based on the CAPX posted by AllanR I don't know to determine if someone is scrolling up and down or sideways?
B
122
S
50
G
24
Posts: 401
Reputation: 22,462


Return to How do I....?

Who is online

Users browsing this forum: 25games, Ashley, mcscooter, TRMG and 33 guests

cron