|
hi all,i need help....im making rpg game and i don't know how to make something....When i press A or D my character going to left,what i need to do to make my character (with camera) rotate when i press A or D... Example: Press A - My character and camera rotate in left like in world of warcraft when i rotate my camera my character automaticaly rotate with camera or when press a or d in wow my character and camera moves sorry for bad english
(comments are locked)
|
|
You can either parent your camera to character (or vice versa) to make it attached, or you can update camera position from script based on character's position.
(comments are locked)
|
|
After a few hours of messing around with various scripting suggestions, I got this working for controlling a simple cube. I learned the hard way that integer math can destroy Time.deltaTime, and that editing a script does NOT change the copy of the script that is attached to a character. // I called this script move.js and added it to my main character.
(comments are locked)
|
