0 Favourites

Help with this example

  • Fix it

  • I tested your example and it seems to be working o-o

  • No, the example is done with the mouse not to touch.

    I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation

  • No, the example is done with the mouse not to touch.

    I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation

    So the problem is you don't understand the events in the event-sheet well enough to see how to change them?

    You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..

    Which is doable, if you understand the mechanics..

    From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.

    you can replace all on left mouse button down conditions with "is in touch"

    you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

    that should get you a good way in the right direction..

  • I try but I do not work

  • If you post your attempt then it will make it easier to see where you are going wrong.

    It would be a much bettter learning experience if you can attempt the changes, then let others see and fix if wrong, rather than someone just doing it for you.

    You'll learn nothing if you just let someone do the work for you.

  • I tried but nothing but good thanks anyway

  • Hint: Insert "touch" object is a good way to start

  • > No, the example is done with the mouse not to touch.

    > I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation

    > <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    >

    So the problem is you don't understand the events in the event-sheet well enough to see how to change them?

    You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..

    Which is doable, if you understand the mechanics..

    From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.

    you can replace all on left mouse button down conditions with "is in touch"

    you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

    that should get you a good way in the right direction..

    I did as you said and it does not work <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    Someone can make me an example <img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral">

    https://www.dropbox.com/s/fbl8wlt0wsgs108/check2.capx

  • >

    > > No, the example is done with the mouse not to touch.

    > > I want with a click (touch) to rotate the figure and once placed on the board with one click you can change rotation

    > > <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    > >

    >

    > So the problem is you don't understand the events in the event-sheet well enough to see how to change them?

    > You don't just want to change mouse events for touch events, you want to change the mechanics of the capx..

    > Which is doable, if you understand the mechanics..

    >

    > From what you explain, you'd like to use an "on tap" and "is overlapping draggable" event for the rotation.

    > you can replace all on left mouse button down conditions with "is in touch"

    > you probably want to change the mouse.x and mouse.y within expressions to touch.x and touch.y

    >

    > that should get you a good way in the right direction..

    >

    I did as you said and it does not work <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

    Someone can make me an example <img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral">

    https://www.dropbox.com/s/fbl8wlt0wsgs108/check2.capx

    I'm not sure why you did what you did, but I guess that's ok, for it seems to me neither do you..

    Why did you make it so that when touching an object the dragging is turned of (event 2 in the sheet)?

    You replaced a "mouse - on left button released" with a "touch - is touching" condition, you do understand why that is wrong?

  • You'd know fix it in the capx?

  • You'd know fix it in the capx?

    Yes..

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • > You'd know fix it in the capx?

    >

    Yes..

    You help me?

  • >

    > > You'd know fix it in the capx?

    > >

    >

    > Yes..

    >

    You help me?

    I've been trying to help you, haven't I?

    I don't think giving you the working capx would be helping.

    I might see it all wrong, but..

    You don't seem to understand what the events and actions in this capx do and you show no interest in learning about it.

    I gave you some pointers on how to change it, but if you can't see that replacing "on mouse button released" with "is touching" is wrong, I don't know how to help you..

    I'm guessing you won't even read my comment once I place the link to the capx, but well..

    Good luck with it!

  • LittleStain

    This is why I think just posting .capx is not helpful. There are far too many users who have no interest - and possibly very little propensity - for understanding even simple events.

    It seems that this user - who registered over 2 years ago - hasn't even yet grasped the basics. Worrying

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