Gamepad + Keyboard at the same time

Get help using Construct 2

Post » Mon Feb 04, 2013 8:03 pm

Hello! i m pretty new at this Forum, and to the C2 as well, learning a lot here, my question is about the options for the player movements, my today project is a sidescrolling plataform, and i want to give the option to play with Keyboard or Gamepad.

i wonder if there's a way to make a event work like this

if pressing keyboard button "space"
OR
pressing gamepad button A
plataform makes action



my doubt is about the OR.
B
6
Posts: 25
Reputation: 539

Post » Mon Feb 04, 2013 8:29 pm

yes of course.

Make sure you have both the keyboard and gamepad object added to your project by double clicking a blank area of your layout.

Then after you've created the first event: eg: on keyboard pressed
right click the same event and choose "add another condition" and choose gamepad on button pressed

Then right click the event a third time and choose "make "OR" block and it will separate the two conditions into an OR statement
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Mon Feb 04, 2013 8:45 pm

Hello Justifun.

Thank's a lot! it worked perfectly on my project.
B
6
Posts: 25
Reputation: 539

Post » Tue Feb 05, 2013 1:31 am

hi guys, getting back to my question, i was making the adjustments for the game to be played with keyboards or gamepads, but when i get to this kind of event,

http://img836.imageshack.us/img836/6482/59226493.jpg

where there are a lot os conditions that must match, i cant put an "OR" in it.

how can i overcome that? there's a way to put the OR just between the selected ones?


B
6
Posts: 25
Reputation: 539

Post » Tue Feb 05, 2013 4:05 pm

hey kkmultes, I might be able to help out. Check your inbox
B
32
S
4
Posts: 405
Reputation: 3,219

Post » Tue Feb 05, 2013 9:30 pm

hi bsxarl88 my inbox is empty.
B
6
Posts: 25
Reputation: 539


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, randomly, spcsmrf and 25 guests