How do I flick an object in a direction?

Get help using Construct 2

Post » Fri Sep 19, 2014 3:55 pm

Hi,
shouldn't this be working?

SwipeToTurn.PNG


It seems to be setting an incorrect angle though.

Can anyone see the mistake? I'm half guessing that the event/tick sequence is working differently than I understood it, but I'm kinda clueless.
You do not have the required permissions to view the files attached to this post.
B
13
S
5
Posts: 221
Reputation: 1,727

Post » Fri Sep 19, 2014 4:15 pm

A tap gesture is a quick tap, so I guess if you change that to on object touched it should work better..
or on any touch start - touch is touching object..
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 » Fri Sep 19, 2014 4:26 pm

As LittleStain said, a tap won't work with a flick.
I used the drag and drop behavior as a base in my template.
https://www.scirra.com/store/royalty-fr ... basics-196
Image ImageImage
B
169
S
50
G
170
Posts: 8,291
Reputation: 108,726

Post » Fri Sep 19, 2014 4:39 pm

try this one
www[dot]scirra[dot]com/tutorials/718/slider-swipe-drag-like-the-iphone-slide-to-unlock-button
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
63
S
14
G
2
Posts: 291
Reputation: 6,641

Post » Fri Sep 19, 2014 5:52 pm

yep, that sorted it. threw in the 'Is touching object' and voila.
thanks guys
B
13
S
5
Posts: 221
Reputation: 1,727

Post » Sat Sep 20, 2014 4:10 am

you're welcome :)
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
63
S
14
G
2
Posts: 291
Reputation: 6,641


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Bootfit, brunopalermo, Exabot [Bot], Huemerson, unicornspitfire, Yahoo [Bot] and 1 guest