x


Making two characters on screen use different movement controls.

Trying to make a pair of characters on a 2d environment move different. I need one to use wasd and the other to use the arrow keys

W/"up"=jump

a/"left"=move left

d/"right"=move right

s/"down"=cause object behind them to change position when they're in front of it.

Are there any guides for altering the control scheme of FPS walker?

using javascript for this >_>

more ▼

asked Oct 13 '10 at 08:51 PM

shadowclasper gravatar image

shadowclasper
37 9 9 15

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You should look into keycodes for Input.

What you need to do then is implement some sort of condition in which a MonoBehaviour script can be applied to 2 different Game Objects but accept 2 different forms of input.

Perhaps a boolean which you could set to true for player 1 and leave false for player 2, which on Update or wherever you're getting your input in check for the value of that variable and switch between input schemes.

Hope that helps.

==

more ▼

answered Oct 13 '10 at 09:11 PM

equalsequals gravatar image

equalsequals
4.5k 16 28 64

Not really, sorry, could you explain how I could apply that to FPSwalker to get what I need from it?

Then I could make two FPSwalker scripts (FPSwalkerS and FPSwalkerN) with different imputs >_>; sorry for being difficult :(

Oct 22 '10 at 08:06 PM shadowclasper
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1367
x141

asked: Oct 13 '10 at 08:51 PM

Seen: 958 times

Last Updated: Oct 13 '10 at 08:51 PM