How do I simulate mouse click

Get help using Construct 2

Post » Sat Jul 16, 2016 2:42 pm

Hi,
Is there a way to simulate a mouse click, in the same way we can do it with the 8 direction behavior?

Here is what I'm trying to achieve : to go through dialogs in my game, one has to click to pass to the next phrase. But I'm now implementing Gamepad controls. I'd like to make it so that when pressing button A on a gamepad, a click is simulated so that it launches the next phrase without having to rework my code.
Possible?

Thanks!
B
32
S
6
G
1
Posts: 352
Reputation: 2,812


Post » Sat Jul 16, 2016 3:12 pm

@Lordshiva1948

Thanks for the links! Could this be implemented into my construct code? Because I don't see anything related to Construct 2 on these pages. These aren't even plug-ins but seems to be completely external softwares. I really don't see how I will be able to use that into my C2 game. Thanks for any help!
B
32
S
6
G
1
Posts: 352
Reputation: 2,812

Post » Sat Jul 16, 2016 5:13 pm

On button click action do whatever you want.
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Sat Jul 16, 2016 6:04 pm

you might have to rewrite you code. I tried using my Input system that works both for gamepad at keyboard and adding mouse didn't work. It recognizes the input but actions are not triggered.
I'm curious as well to see if someone can bring a solution
B
43
S
12
G
14
Posts: 488
Reputation: 10,570


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 36 guests