How do I delaying the drag functions.

Get help using Construct 2

Post » Tue Aug 19, 2014 8:50 pm

Hi all,
I need to delay the Drag Function in my sprite.
I would like to "drag & drop" is initial state / enabled after 0.5 sec but after releasing state / disabled.
Maybe someone knows a different way, because what I'm trying to do is not working well.
My sprite is percussion instrument that will be moved to the trash or anywhere on the layer, but when you will be playing drums I want to avoid accidental displacement.
I'm counting on your help.
Sorry for my English :-)
B
5
Posts: 5
Reputation: 235

Post » Tue Aug 19, 2014 9:24 pm

Should work with events something like this:

add the timer behaviour

on sprite touched - start timer "whatever" for 0.5

on any touch end - stop timer

on timer - sprite set drag and drop enabled..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 19, 2014 9:38 pm

@ProDesignerOne

From my experience enabling drag after the timer like LittleStain said means you have to re-Touch the object to start dragging, but there is a way to have drag enabled but not allow the object to move until after the timer though.

Here is an example of having to touch and hold an object before it will drag:
Wait to drag.capx
You do not have the required permissions to view the files attached to this post.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
33
S
9
G
7
Posts: 450
Reputation: 6,780

Post » Wed Aug 20, 2014 2:54 pm

Amazing!
You are wonderful! I do not regret that I went from GameSalad.
Thanks again.
B
5
Posts: 5
Reputation: 235


Return to How do I....?

Who is online

Users browsing this forum: amazingdream and 25 guests