kenhes's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to use TouchforID. This will mean the sprite is only effected by touches on it....and no other touch. I have an example if you still need it.

  • I'm using r114 64 bit.

    This is a weird one because it only shows up when I use basic touch mode in the Visual Studio simulator. If I use mouse mode, it works fine. I checked on a physical touch device and the problem is also there.

    So, if you build the attached file to either html5/Windows 8 and use the result on a touch screen. Swipe the red puck and it should fire off in the direction of the swipe....but sometimes (usually swiping "south east") the puck will reposition itself to the origin and move from there.

    Hockey Game

    Edit: In the full game, I have a green puck on the other side and it works fine in any mode.

  • If by snapping you mean how the they come back on screen after leaving....that's for testing purposes. In fact the pucks have been transplanted in to a blank layout to test the multitouch.

    Thanks for your time guys.

  • I should also ask...How well do they "stick to your finger"? The game will be more about aim so it doesn't need to follow the finger too much.

  • If they fly off in the direction of the swipe, then that's expected behaviour. Cheers!

  • Could someone with a tablet check the multitouch is working on these two pucks?

    Multitouch

    The game needs:

    Each puck to be moved individually at the same time...ie a different finger on each.

    To be able to "swipe fire" each puck without anything weird happening.

    That's it! Thanks.

  • septeven Got it now. Thanks.

  • The links don't work any more.

  • I'll give it a go. I assume the "on any touch end" is ok...

  • jayderyu

    Great help thanks. Slowly getting there. :)

    I've implemented half of what you suggested and the pucks moves around as expected. See the image for the changes, but I don't exactly what you mean by these:

    --move puck--

    puck var touchid > -1(keep in mind that touchid starts at 0) Is this a condition?

    --release puck--

    check for which touch was release and then find the puck How to do this?

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

    Many thanks for your help.

  • procrastinator Dropbox was taking ages to upload. It's working now. The green puck is set to nth touch 0 and works, but the red puck is set to 1 and doesn't.

    Nth Touch

  • I tried that, but nth touch will only work if I use 0 as the value. Is it a bug? Maybe you could try it?

    Nth Touch