Create an analog stick at touch ID?

Get help using Construct 2

Post » Wed Apr 17, 2013 4:37 pm

touch.index has near 0 relevance to multi touch gaming. it's only possible use is when you specifically want to organize based on a touch system of reducing and eliminating touches on a 0 based.

I cannot imagine any game where touch.index will be of use that isn't related to music.

prior to touch.touchID and touch.XYForID it was impossible to do multi touch input. Ashley gave it a try when I pushed subject on the difficulty. Thus now we have touchId. Still appreciate it :)

and yes excal it is sorta in a situation where you need to just get it right. I spent a month prior to touch.touchid and ForId to get dual analog working. I ended up using drag and drop behaviours instead of touch.index(as that was only natural multitouch available). It worked but it had a funny bit where the DD objects could not be stored in a sub folder for sorting :(

It's sorted out now.You can have dual/quad/hex/oct analog based controls now :P

=Group whatever=
var static tid = -1

onTouch Hudleft sprite
tid = -1
-- tid = touch.touchid


isTouching hud leftsprite
tid => 0
-- do your analog stuff
-- use touch.AbsoluteXForID or touch.XForId(you need to use ForId)

endTouch
touch.touchid = tid
-- end touch stuff
-- tid = -1

maybe you can minimize your capx and share it. I can barely effectivly read the imagesjayderyu2013-04-17 16:38:23
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Fri Apr 19, 2013 7:51 am

@jayderyu

What about two analogs?

What you have above seems to be for a single analog, which I have working. The issue is getting the second analog to appear.



And here are the events for the right-hand side.

Excal2013-04-19 08:08:14
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Fri Apr 19, 2013 3:02 pm

Hate to keep bumping this, but getting the multitouch to work is one of the last steps I need to take before I can submit to the Newgrounds Construct 2 game jam.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Fri Apr 19, 2013 7:09 pm

well how about posting you capx. so I can get a hands on look. I can't see what's wrong by images. Yet what I put up is working on my device.

Also the information of
* testing device
* OS
* version
jayderyu2013-04-19 21:02:08
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sat Apr 20, 2013 1:04 am

@jayderyu

Here's the .capx: SpaceGame.capx
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 20, 2013 9:01 am

ugg. I'm having troubles with my computer at the moment. I upgraded my router and for some reason I can't preview over LAN at the moment. I will check on it as soon as I have that going.
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sat Apr 20, 2013 9:18 am

@jayderyu

Problem has now been fixed :)
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 20, 2013 9:36 am

fantastic :) I'm glad you managed to get it working. Looks and plays pretty darn well :)

did you do your own art. It looks great :)jayderyu2013-04-20 09:37:21
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Tue Dec 10, 2013 8:59 am

how did you fix it.

am trying to have a thumbstick (which is working fine) but also have a couple of screen buttons (jump, powerups etc) that should work in concurrence with the thmb stick.
When ever a button is clicked, the thumb stick resets position. How can i determine that the touch end event was not triggered from the stick but from the other buttons.
B
10
S
1
Posts: 7
Reputation: 520

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests