How do I easily bring touch support to a mouse only game.

Get help using Construct 2

Post » Tue Mar 18, 2014 3:55 pm

Hi there,

So I'm in the process of swapping out an extensive number of mouse click events with touch events. this is tedious and certainly prone to bugs.

I was just wondering if there wasn't some kind of systematic way to replace all.. kind of a "find all / replace".. or some kind of override..

like "every time a touch is made, count it as a click"

I'm not sure this is possible, but I at least wanted to pose the question for anyone out there who might know an answer or lay to rest my question and for others who might have a similar situation


Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545

Post » Tue Mar 18, 2014 4:03 pm

If you use the Touch object, by default the option to use mouse input is selected.
Image

I don't generally even use the mouse input unless I would need access to the right and middle buttons.

To answer if there is a quick way to go from Mouse inputs to touch, I don't know of a way beside going through each one and replacing it. Sorry.
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Tue Mar 18, 2014 4:10 pm

yea noob mistake on my part... i used mouse object.

The untangling is tedious, but it's coming along well enough.. i learned a lot in this project..

my 2nd project I did it right (using touch) @arcaded Thanks for confirming thought.. its a pain in the ass, but the lesson is taken in stride :)


Thanks!
Caleb
B
59
S
9
G
1
Posts: 939
Reputation: 6,545


Return to How do I....?

Who is online

Users browsing this forum: evillair, lordsas, Matei511, tarek2 and 65 guests