Can someone help fix my touch stick

Get help using Construct 2

Post » Tue Aug 08, 2017 8:29 am

I'm trying to create a touch stick for my game that I downloaded from scirra.com/tutorials/398/touch-stick-controllers

But there's a problem where the analog sprite is created far away from the location where I touch. I use exactly the same coding was given to me and I have no idea how to fix it.

Here's my capx :

drive.google.com/open?id=0ByPMm4jDPcvlYTFYNk9oYzRIbTA

PS: sorry i can't use clickable link cause of new account
B
9
S
1
Posts: 9
Reputation: 445

Post » Tue Aug 08, 2017 8:38 am

@duke2704

Swapping Touch.AbsoluteXForID(touchID) and Touch.AbsoluteYForID(touchID) for Touch.X(ID) and Touch.Y(ID) in events 2 & 3 worked for me.
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Wed Aug 09, 2017 12:55 am

mekonbekon wrote:@duke2704

Swapping Touch.AbsoluteXForID(touchID) and Touch.AbsoluteYForID(touchID) for Touch.X(ID) and Touch.Y(ID) in events 2 & 3 worked for me.


Thanks alot. That worked for me as well
B
9
S
1
Posts: 9
Reputation: 445


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests