Hi Guys…
i want to create a charachter controller but i have a problem on how to make that…
i need charachter controller were have a combination arrow…
example :
if i click arrow “>” second time, charachter will run on the right side…
if i click arrow “>” and “^”, charachter will move to askew
if i click space + “d”, charachter will jump and make a hit.
i hope you can give me sample script.
and sorry for my english.
press “>” and “^” well you jsut use a if statment to detect if > has been pressed and make another if statement underneath to check for ^ and add the value to the one already in your movement vector. so move > movement = new vector3(1,0,0) to move positive x and in the other if statment move ^ movement = new vector3(0,0,1). add these together and * by a speed such as 200 then * by time.deltatime.
space + d you need to store these in a kind of buffer so an array that stores which keybaord buttons have been pressed but they only get say 1 second or 2 to actualy input the command before the buffer is checked and cleared.