Scroll for Ios

Get help using Construct 2

Post » Sun Nov 13, 2011 6:51 pm

Hi,

Is there a way to make a scrolling for ios, using touch object ?

I mean, I try to have a window size of 922x640 (resolution for iphone) and a layout size of eg.1950x640. My goal is to navigate into the layout using the finger on screen thanks to touch object...

Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Sun Nov 13, 2011 8:29 pm

An easy way to do this is to create an invisible object, called 'camera' with the scroll-to behavior. Now you can manipulate this object to always be at touch.x, touch.y.

If you want complex swipe navigation, I do not really know.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,664

Post » Tue Nov 15, 2011 11:37 pm

Hey thanks!
Unfortunately, it doesn't work. It's not really stable, and all textboxes, buttons, don't follow the scroll correctly.

Also, the app on iphone (I convert my html5 in IPA with sentenza for ios) doesn't display correctly (the layout is shifted on the left... but my scrolling is only in Y axis)
I think I'm clear...:/

Is there no way to have a simple navigation by touch in a layout bigger in Y than the project height?
Thxsepteven2011-11-16 08:56:26
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Thu Nov 17, 2011 11:09 pm

Hey guys I really need help for this problem. I tried to figure out by myself but I didn't. ;)
After long hours, I can understand that ONLY textboxes and buttons don't follow the scrolling. I'm on SCALE MODE and Unbounded Scrolling "YES".
I tried a million of combinaison, and the only one which works is if I fixe the Scale rate at 0 and Parallax at 100,100.
The problem is, and it's a big one, in my iphone, the "scale rate to 0" makes a zoom. I can see only left corner as if we zoom in 200%...

I'm really, really, lost...
Thanks for helping.
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Sat Nov 19, 2011 6:21 pm

sorry to up this thread but...
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Mon Feb 06, 2012 7:20 am

Bumping an old thread... perhaps there's some new insight?

Hey @septeven, did you eventually manage to get this to work? I need this functionality too.

Any hints for swipe scrolling on mobile devices?

Thanks.
B
14
S
5
G
8
Posts: 235
Reputation: 5,675

Post » Mon Feb 06, 2012 8:46 am

@Geo
According an old Yann's example, I did this example, but more you'll add form elements, slower will be your project.septeven2012-05-01 13:44:46
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Mon Feb 06, 2012 8:49 am

Thanks septeven, I ended up implementing something very similar. It's not very elegant, but it works
B
14
S
5
G
8
Posts: 235
Reputation: 5,675


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, ismael123, lennaert and 9 guests