How do I make a part of app not move when scrolled up , down

Get help using Construct 2

Post » Sun Jul 09, 2017 2:54 pm

I am such an idiot , I was setting the parallax to 0, 0 of the wrong layer. I am really so sorry but now how can i make it to not touch the layer which I don't want to be scrolled . THANK YOU SO MUCH , ANYWAY , I TRULLY LITERALY LOVE YOU. NO HOMO
B
8
S
1
Posts: 75
Reputation: 554

Post » Sun Jul 09, 2017 3:57 pm

You're welcome :)

Do you want avoid triggering an object that is on the top layer if you swipe across it whilst scrolling ? If so, this may work (although there could well be a more straightforward solution):

Add all the objects on the non-scrolling layer to a family .
Add a global variable "isScroll" set to 0.

On touch start:
>>if is NOT touching family: set isScroll to 1.

On touch family:
>>if isScroll = 0
>>>>if object A do X
>>>>if object B do Y etc

On touch end: set isScroll to 0
B
21
S
9
G
4
Posts: 473
Reputation: 4,285

Post » Sun Jul 09, 2017 4:05 pm

can you please make a file so I can show how to code on touch start , i just started learning construct 2 .
B
8
S
1
Posts: 75
Reputation: 554

Post » Sun Jul 09, 2017 4:21 pm

I've updated the demo:

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

If you click first on the scrolling layer and drag you can drag over the HUD without triggering it.
If you click first on the HUD it will register the input, and you can drag without moving the scrolling layer.
B
21
S
9
G
4
Posts: 473
Reputation: 4,285

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests