Multitouch not dragging Please Help

Get help using Construct 2

Post » Wed Nov 04, 2015 12:27 am

Hi

In my game the 2 players drag their player to move, and tap to shoot.
When i test it, ( I have both previewed it, and exported it) if one player is moving, it will NOT let the other player move. I have tried many things and i can't seem to find an answer. Please Help :?

Anything will help!

Thanks In advance!
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Thu Nov 05, 2015 8:47 am

did you exported it in android and tested it in android too ?
if you did, then check the device info ... maybe you don't have Multitouch supported in your device
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908

Post » Thu Nov 05, 2015 5:02 pm

Thank you for you're response,
I have exported it to android, and tested it there, and it doesn't work

I have a galaxy s5 with multitouch enabled, so I do not believe that is the issue

Do you need a .capx? I will try to submit one when I get home
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Thu Nov 05, 2015 5:29 pm

In what way did you implement the multitouch?

Are you using the drag and drop behaviour on the players or are you using TouchID, XForID and YForID?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Nov 05, 2015 8:27 pm

@LittleStain touch ID
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Thu Nov 05, 2015 8:45 pm

IanHarlow wrote:@LittleStain touch ID


If you are you setting an instance variable on the object to touch ID on touch and using that variable referencing the touch, it should work..
Could you share your events?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 06, 2015 2:22 am

@LittleStain I Tried to post a .capx i could not figure it out...

I'm not quite sure i understand... My Events Run like this
NOTE: I use the rexrainbow behavior "MoveTo"

LeftMovePlayer = Global Variable
RightMovePlayer = Global Variable

>On touch1 start >Then Set LeftMovePlayer to 1
>If touch.x < layoutwidth / 2 >Set "Left Selector" position to (Touch.x, Touch.y)
> And touching LeftPlayer >Create Object "Left Selector" on layer 0 at (Touch.x,Touch.y)
>Move Left Selector to bottom of layer

>On touch 0 start >Then Set LeftMovePlayer to 1
>If touch.x < layoutwidth / 2 >Set "Left Selector" position to (Touch.x, Touch.y)
> And touching LeftPlayer >Create Object "Left Selector" on layer 0 at (Touch.x,Touch.y)
>Move Left Selector to bottom of layer

>If LeftMovePlayer = 1 >Destroy "LeftSelector"
> No Touch >Set LeftMovePlayer To 0

>If LeftMovePlay = 1 >Move To "LeftSelector"
>and Touch.x > layoutwidth / 2 >Set "LeftSelector" position to (Touch.x,Touch.y)

That is the events for the left side, The right side is the same but Changed for the right...

The goal is to Have both player to be able to be dragged to move at the same time, but they need to have a certain speed. what do i need to change / re-do?

Thanks For all of your help so far :D,
Ian
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Fri Nov 06, 2015 9:33 am

You probly mean something like this:

https://dl.dropboxusercontent.com/u/485 ... oveto.capx

(Unfortunately couldn't test it though, so it might not work)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 06, 2015 12:50 pm

@Littlestain Thank Your Sooo much!! That is Exactally what i have been trying to build!!!

And thank you for the time you took to build the .capx
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Fri Nov 06, 2015 1:45 pm

i think i am not very good at the touch events ... ( i didnt work on a android game until now). :D
C2 Intermediate Developer
Feel free to contact me
B
7
S
2
Posts: 111
Reputation: 908


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, SturmIV and 6 guests