How do I fix angle toward (touch)

Get help using Construct 2

Post » Tue Apr 15, 2014 5:34 pm

Hello,

I have set angle toward (Touch.X, Touch.Y), when i touch is ok, but if i release de touch the object returns to the previus position.

How i can fix?

Thanks!
B
6
Posts: 46
Reputation: 342

Post » Tue Apr 15, 2014 5:51 pm

You only want to set the angle when the user is touching the screen. If they're not touching then you'll end up setting the angle toward (0, 0). Just add a 'Touch: Is in touch' condition.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,650

Post » Tue Apr 15, 2014 6:11 pm

I tried Is in touch, but the object i need to rotate is a "fixed cannon" and this condition causes a lot of quick shots and, anyway, the point is the player touch everytime for a single shot.

...Sorry for my English...
B
6
Posts: 46
Reputation: 342

Post » Tue Apr 15, 2014 6:44 pm

Ok, i solved... i have it in an every thick condition and this causes the bug.
B
6
Posts: 46
Reputation: 342

Post » Sat Apr 19, 2014 9:11 am

@Snowmane
Can you say how did you fix it please?
I have the same problem!
Neither works for me!
Thank you
You do not have the required permissions to view the files attached to this post.
B
7
S
1
Posts: 53
Reputation: 545

Post » Mon Apr 21, 2014 8:24 pm

Remove from the every tick and move to the action specific... this worked for me.
B
6
Posts: 46
Reputation: 342


Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, JMTook, maranpis, zill and 22 guests