How do I detect an end of a touch from certain sprite?

Get help using Construct 2

Post » Sat Feb 28, 2015 2:11 am

Touch only has: on any touch end.

So far that I know it cannot say on certain object touch end.

If I have 4 sprites up, down, left, right.
How can I differentiate the end of touch on those sprites.

Because in my games there are certain actions happen after the end of touch of up/down sprites and left/right sprites
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Feb 28, 2015 2:31 am

on any touch end and then also use the condition is touching object
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 28, 2015 3:02 am

Hai Volkiller, it seem to work. I've tested it on desktop.
But how can touch ends but at the same time still touching?

and if I touch 'up' and 'left', then I stop touching 'up'
won't it trigger two events?
on any touch end
-is touching up
-is touching left

instead of only the 'up'?

I can't test this on desktop, so I use assumption.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sat Feb 28, 2015 3:43 am

it will only trigger the last thing touched. it is what i use


ekajuan.PNG
You do not have the required permissions to view the files attached to this post.
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sat Feb 28, 2015 11:31 am

If you mean rpg style collisions use a mask object following the bottom centre of the character and set the mask to invisible so it's never seen.
B
8
S
2
Posts: 134
Reputation: 1,001


Return to How do I....?

Who is online

Users browsing this forum: RogerThompson, SoldjahBoy and 10 guests