How do I scroll a layout with inertia?

Get help using Construct 2

Post » Tue Apr 11, 2017 8:41 pm

Tap 4 spawn.
Pinch for zoom.

https://www.dropbox.com/s/fu42kbufwhmcu ... .capx?dl=0

Although, that is probably not 100% what you want, cant look in the future, so the spawn happens on release.
Need to give the player at least a little time to get that second finger on the screen.
B
33
S
18
G
29
Posts: 2,493
Reputation: 21,450

Post » Sat Apr 15, 2017 9:50 pm

Thanks @99Instances2Go !
That's an interesting approach.
I was thinking about the following gestures, any idea on how to do that ?
- 2 fingers to drag/scroll layer (this is what Google map proposes now for mobiles gestures)
- 2 fingers pinch to zoom/de-zoom (this is what Google map proposes now for mobiles gestures)
- 1 finger tap for spawning.
- 1 finger hold on spawn object to drag it around the layout
B
40
S
17
G
5
Posts: 281
Reputation: 6,143

Post » Sun Apr 23, 2017 10:49 am

@99Instances2Go Still no idea about that ?
B
40
S
17
G
5
Posts: 281
Reputation: 6,143

Post » Sat Dec 09, 2017 11:43 pm

@R0J0hound

I am testing your example on r249 and touch scroll dont work on mobile over wifi (iOS or Android)!?
Can anyone confirm?
B
37
S
16
G
3
Posts: 854
Reputation: 6,736

Post » Mon Dec 11, 2017 5:30 am

@irina
Maybe switch the mouse events with touch events?
B
100
S
38
G
134
Posts: 5,550
Reputation: 85,313

Post » Mon Dec 11, 2017 7:56 am

yes... yes.... i'w noticed that :)
i think i'w deleted that post but somehow it's here again :)
B
37
S
16
G
3
Posts: 854
Reputation: 6,736

Previous

Return to How do I....?

Who is online

Users browsing this forum: saour and 4 guests