kenhes's Recent Forum Activity

  • Perfect. Thanks Jasper

  • There a quite a few sprites for that. I was thinking of something like: Get the difference between touch co-ords and sprite centre. Then put that at the touch co-ords.

  • I have this system for my sprites to allow them to be touch dragged:

    Is touching Sprite ] Set sprite position to (touch.X, touch.Y)

    It works, but it's not pretty. Basically, the centre point of the sprite jumps to your finger. I'd like to be able to drag from any part of the sprite and not have it jump/snap. Any ideas?

  • I used the condition that the smaller sprite wasn't overlapping the bigger one. Thanks wretchedshark

  • That only seems to work if both both are instances of the same sprite. I have two different sprites.

  • I have two sprites that are touch draggable. If one is dragged and dropped over the other, then the next time it is dragged, both sprites move.

    How can I solve this behaviour?

  • Here's an example in this thread. See the last image for the most up to date.

    Touch ID

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I may have solved it. Adding what happens when touch speed is less than 100 seemed to do it.

    <img src="https://dl.dropbox.com/u/10196246/touchid%20solution.JPG" border="0" />

  • Changing it to "is touching puck" (inverted) makes the behaviour occur in preview mode. (Before, it would only be seen on a touchscreen). Getting closer I guess.

    TouchID

  • Thanks for the response. I've initiated a new thread:

    Touch ID

  • Ashley responded to me in this thread:

    the 'on touch end' event takes a zero-based index of a touch, but you're passing the touch ID which is an arbitrary number uniquely identifying a touch.

    <img src="https://dl.dropbox.com/u/10196246/Origin.JPG" border="0">

    I think he means that the problem is 'on touch end' expects a specific numeric index (number of touches) but I'm passing it the random unique number of the puck.

    I thought this line was saying "when the specific touch on this puck ends" but apparently not.

    Does anyone know of a way to say that?

  • I'd appreciate any help on this. It's the only thing stopping the game being released.

kenhes's avatar

kenhes

Member since 17 Oct, 2012

None one is following kenhes yet!

Connect with kenhes

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies