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
7
Posts: 7
Reputation: 291

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
19
S
8
G
3
Posts: 425
Reputation: 3,968

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
7
Posts: 7
Reputation: 291


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 2 guests