Little Help needed with touch controls

  • 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 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.

  • bump

  • 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)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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)

    Ty never looked at it liked that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)