Please Help With Touch Events

Discussion and feedback on Construct 2

Post » Thu Jul 26, 2012 1:01 pm

I am fidgeting around with the touch controls. The angry birds-esque genre seemed perfect to experiment getting this done.

Problem is that occasionally when I release, the object just falls to the ground as if the angle and force were not applied. This happens intermittently.

Any one have an ideas?

Here is the capx [r99]
http://dl.dropbox.com/u/53052693/ABC.capx
B
12
G
1
Posts: 19
Reputation: 1,066

Post » Thu Jul 26, 2012 1:38 pm

I had the same problem. Generally it's not a good idea to manually position a physics object. What I did was create a placeholder sprite to use for aiming and then when touch is released, destroy it and create a new one and apply the force to the new one.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Thu Jul 26, 2012 1:51 pm

Awesome. Thanks. That did the trick.
B
12
G
1
Posts: 19
Reputation: 1,066

Post » Thu Jul 26, 2012 8:00 pm

Today I tried the Touch events on the new Safari 6 and couldn't get them to work.

Don't know if it's just me or if Safari6 broke compatibility.
B
41
S
11
G
4
Posts: 428
Reputation: 7,356


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests