Walk not just with arrows, also with WASD

Get help using Construct 2

Post » Thu Feb 25, 2016 1:25 pm

I thought this was the whole point of your question?

Do you mean "cursor Up" OR "W" - (hint: this is the answer)

Please read or watch a platformer tutorial - because this is basically one of the first steps in every tutorial.
like: https://youtu.be/8V4q6usaYMk?t=594 (but I suggest to start from the first video of this series https://www.youtube.com/watch?v=QBE8SFUi5xk)

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Thu Feb 25, 2016 1:51 pm

Yeah but the problem is with "default controls" the arrow keys are not working the same as WASD. It's a bit complicated to explain and my english is not the best ^^
I think I have to set my main characters default controls to no and add some more actions to my walk events. With the default controls you dont need a action like "simulate platform pressing left". It also works without is, but just with the arrow keys. Thats was also the problem why my OR not worked... Thanks! :)
B
27
S
10
G
3
Posts: 76
Reputation: 3,068

Post » Thu Feb 25, 2016 2:43 pm

Keyboard | Keycode 87 is down Player move forward 2 pixels W key
Player set angle to 270 UP

as above keycode for A = 65 and angle 180
as above keycode for D = 68 and angle 0
as above keycode for X = 88 and angle 90

Thus you have 4 keys assigned W A D X
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Thu Feb 25, 2016 2:47 pm

Nefaru If you want full demo then check it out with link below FILE NAME KEY CODES.CAPX

https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0
B
250
S
39
G
15
Posts: 1,953
Reputation: 40,623

Post » Thu Feb 25, 2016 7:48 pm

Cool Thank you :D
B
27
S
10
G
3
Posts: 76
Reputation: 3,068

Previous

Return to How do I....?

Who is online

Users browsing this forum: namaewayukidesu and 20 guests