|
I just want to move the object via wasd or arrow btns like in space invader! 2D! How to do it? Javascript pls! if script examples are getting used!! should work sumhow like that??
only for my wasd! Celofa
(comments are locked)
|
|
I made a cube fly around like a spaceship with this script:
This makes the spaceship fly around on the xy plane. You may need to change the speed depending on the mass of the spaceship. Also, make sure the the Horizontal and Vertical axes are set to wasd keys and the rigidbody is not affected by gravity. I hope this helps. Whoops... No comma after the zero. Make sure you fix that.
Jan 17 '11 at 04:35 PM
Meater6
(comments are locked)
|
|
If you want to move the object using applied forces, it might look something like this (untested): But if i want one player with WASD and another player with Arrow ! how i can do ?
Dec 01 '12 at 06:54 PM
ProXenT
(comments are locked)
|

I don't think it would use the "Jump" tag.
haha yeah i know!! it wasnt about the tag!! i mean the way to move object!! I would have to rename the inputs for my needs!