Slide trough menu and disable touching the buttons

Get help using Construct 2

Post » Fri Feb 21, 2014 10:24 am

Hi all!

I am mostly creating applications for Android.

This is fun but the hastle is about the screensize you got to use.

So.. To fix this point i always try to find good ways to put my content in a good way.

Now.. I have this idea where i got to much content for my screen. I want to be able to slide trough.
The idea:


Those "objects" go on for about 15 sprites
What i want to do is being able to slide trough by swiping..

So what i tried is pinning all objects to a background behind it.
I gave the background a drag & drop behaviour on horizontal.

This actually works pretty cool but now the problem is.. All objects have the touch action.

So once i make them untouchable dragging from left to right works perfect.
Once i make them touchable, the touch object will overrule the drag & drop which results in doing the action on touch.

I hope i made myself understandable.

Any help is kindly needed!

Thanks in advance!
Posts: 181
Reputation: 2,551

Post » Fri Feb 21, 2014 10:44 am

I would probably choose to make the touchable object react to on touch end and start a timer on touch to see if touch has lasted longer than a certain amount of time.
You could also check how much the touch has moved during touch and guess if drag was meant or button touch.
Posts: 6,160
Reputation: 19,775

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests