Little Help needed with touch controls

Get help using Construct 2

Post » Thu Dec 15, 2011 9:52 pm

Ok so i created my game works fine but i need help with the touch controls since it will be a mobile game. I set some events up some are working some are not. What i want is that when someone touch Santa his throw hand goes up then a dotted line will allow you to see where he will throw the box. The objective is to throw the box onto those ice box and deliver it. The more he pull back the further it will go.

You see like the catapult in this example http://www.scirra.com/forum/drag-and-throw-physics_topic45693_page2.html when the ball is pull back the arrow moves and also get longer i need help with that.

astonishin2011-12-16 01:38:42
B
10
S
3
G
4
Posts: 16
Reputation: 2,906

Post » Thu Dec 15, 2011 11:14 pm

bump
B
10
S
3
G
4
Posts: 16
Reputation: 2,906

Post » Fri Dec 16, 2011 12:30 am

Well, the catapult capx is pretty explanatory.

The three states of the button mouse are the same that in the touch object.
(On touch start, is touching object, on touch end)

On touch start, you display the arm, the trajectory (as a sprite, like greenarrow is in catapult) and the gift.
Is touching object, you set the angle of your arm and of your direction.
On touch end, you apply a force on your gift.

You can read more about the force and such in the physic tutorials (basic and advanced)
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Dec 16, 2011 1:39 am

[QUOTE=Kyatric] Well, the catapult capx is pretty explanatory.

The three states of the button mouse are the same that in the touch object.
(On touch start, is touching object, on touch end)

On touch start, you display the arm, the trajectory (as a sprite, like greenarrow is in catapult) and the gift.
Is touching object, you set the angle of your arm and of your direction.
On touch end, you apply a force on your gift.

You can read more about the force and such in the physic tutorials (basic and advanced)[/QUOTE]

Ty never looked at it liked that.
B
10
S
3
G
4
Posts: 16
Reputation: 2,906


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, makkancs, TiagoCesar and 17 guests