Pick Nth touch by X

0 favourites
  • 3 posts
From the Asset Store
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • Hi Constructors!


    I've been fighting with setting up some multi touch control events.

    I am moving the player using isTouching sprite.

    and i have a big blank sprite covering most of the screen for firing.

    my firing events says if isTouching fireSprite, spawn a ammo with bullet behavior towards angle(ammo.x, ammo.y, touch.x, touch.Y).

    Now if my first touch is on the fireSprite and then i move around while shooting, everything works fine, but if i move first then i try to sho?t the system picks the 1st touch X and Y and shot towards the UP/DOWN controls.

    So what i am basically trying to do is if touchCount or has Nth touch is bigger than 0, pick touch where touch.x is bigger than 150 and shot to that X and Y.

    Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nevermind i finally got around it using Touch.XForID.

    Thanks anyways!

  • Is it possible that CocoonJs does not support the touch ForID expressions?

    Playing on android through firefox i am getting the right result, but not on CJ.

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