double touch like double mouse click

Get help using Construct 2

Post » Thu Jul 04, 2013 5:07 am

Wow awesome example,ramones!
B
6
S
1
G
1
Posts: 39
Reputation: 828

Post » Thu Aug 08, 2013 12:36 am

Double Jump Using Touch Controls
Thanks to @ramonesI figured out how to make a sprite double jump on a touch device :D

CapxNECROKRIEG2013-08-08 00:39:53
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Fri Nov 15, 2013 9:24 am

Hey , what about triple tap ? Can you help me out ?
B
3
Posts: 6
Reputation: 187

Post » Wed Feb 05, 2014 11:21 pm

Hi !

In the two examples above, the double tap isn't a "real" one.

In fact, you can enable jump/flip by releasing the touch and touching again instead of Touching two times.

Here >          Release>Touch=Jump
"Real">    Touch>Release>Touch=Jump

I think the problem is due to the "On any touch end" condition but I don't know how to proceed.

Does anyone have an idea ?
B
4
Posts: 14
Reputation: 255

Post » Thu Feb 06, 2014 11:39 am

@Perlin i got movement type but make diamonds and rocks falling its more dificult i try with platform and physics i need tips how this do in C2delgado2014-02-06 11:39:43
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Thu Feb 06, 2014 1:58 pm

Hum...

I don't really understand the link between double tap and what you said...

Does someone have an idea about how to get a "real" double touch/click ?Perlin2014-02-06 13:59:02
B
4
Posts: 14
Reputation: 255

Post » Thu Feb 06, 2014 2:14 pm

Ehm @Perlin, wouldn't you have to have touched the device before being able to release it?

If you want a certain timeframe in which double-touching is possible using the timer behaviour could be a possibility, but maybe I'm not understanding your issue..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Thu Feb 06, 2014 3:14 pm

Ok here is my .capx :

DoubleTapDashTest.capx

It's seem that the dash (high speed) work properly by double clicking.
But try to hold a touch/click in order to move the player at normal speed then quickly release the touch/click and click again.

You can see that the player is dashing (high speed).

Like I sais before:

Click > Release > Click = action   IS a real double touch/click

Release > Click> = action ISN'T a real double touch/click

The problem is that the player could accidentaly dash when I don't want to AND if he think that dash=double touch, et could accidentaly stop is dash mouvement (in my .capx) by clicking one time more than he have to do:

Example: I'm moving the player by holding touch, and quickly I release my finger, and double click on another part of the field.
So we have:

Touch Holding > ReleaseTouch > Touch > Release > Touch > Holding
     =               =           =                 =        =
Normal Player   No control     Player            Player    Normal Player
Move          over player    dashing           Normal       Move
                                             (not dashing
                                                anymore)

Like I said before :

Click > Release > Click = action   IS a real double touch/click

Release > Click> = action ISN'T a real double touch/click

In my case, I can't tell the player that dashing is double touch, because it isn't ! If He does a double touch from a state where the screen isn't touch, the double touch seems like a real one and dash occurs normaly. But if does a double touch from a state where he is already touching the screen in order to move the player, the dash will be stoped by the second touch of the double touch.

It's hard to explain but you sould test it with my .capx to understand.
B
4
Posts: 14
Reputation: 255

Post » Thu Feb 06, 2014 3:22 pm

Touch Holding = Player Normal Move
     V
ReleaseTouch = No more control over Player
     V
    Touch    = Player Dashing
     V      
Release    = No more control over Player   
     V
Touch&Holding = Player Normal Move (not dashing anymore)                                  
B
4
Posts: 14
Reputation: 255

Post » Thu Feb 06, 2014 3:42 pm

@Perlin lol my mystake :)
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: mjj1990 and 6 guests