[SOLVED] How do I Hold gesture down like Key down

Get help using Construct 2

Post » Wed Nov 02, 2016 6:34 pm

Hello,
I am facing a problem:
I would like to make Condition "Hold over object" Acting like "Key Down", but if you look at the project and test it, I need to push again and again...

I see two solutions:
1. Make the character continue straight and stop only if CollisionDetector is overlapping wall. I don't know how to call the event again (maybe a function?)
2. Make "Key Down". Because when it is Key Down effect, it does trigger until key is released.

capx: Problem solved

Thanks for your help !

EDIT: SOLVED
Last edited by orugari on Wed Nov 02, 2016 7:53 pm, edited 1 time in total.
B
15
S
4
Posts: 57
Reputation: 1,792

Post » Wed Nov 02, 2016 6:49 pm

The On hold is not constantly triggered. It is only triggered once, after a "hold" has been detected. Try removing both triggers and replace with "Is touching arrow_key".
ImageImageImage
B
71
S
22
G
248
Posts: 3,756
Reputation: 138,058

Post » Wed Nov 02, 2016 7:05 pm

Omg, shame on me... I forgot about simple touch....

Thank you @blackhornet
B
15
S
4
Posts: 57
Reputation: 1,792


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 59 guests