Pick Nth touch by X

Get help using Construct 2

Post » Tue Nov 12, 2013 6:21 pm

Hi Constructors!

HELP!

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?
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Tue Nov 12, 2013 7:13 pm

Nevermind i finally got around it using Touch.XForID.
Thanks anyways!
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763

Post » Tue Nov 12, 2013 9:49 pm

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.
Image
B
82
S
30
G
12
Posts: 517
Reputation: 12,763


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests