Search the Community
Showing results for tags 'character controller'.
The search index is currently processing. Current results may not be complete.
-
Hello again, I finally got footsteps sounds to work properly on the correct material using triggers. But I have been unable to get a sound to be played at the correct time when the player jumps and lands on a material. How would I implement such a feature using a trigger? EDIT: I manged to work this out in the end. I did this by making global variables of both the players jump status with the GetAirborne command and the players current speed using GetVelocity():Length command. I then made a jump trigger box combined with the necessary commands for collision detection. Upon player collision, my jump trigger sets a global isJumping variable to false (isJumping is set to true when the player leaves the jump trigger). Finally I added an if statement to check if the player is airborne and moving, if this is true then I set the isJumping variable to true. (Making sure to make an if statement in the character controller to play the landing sounds when the isJumping variable = true). Not very efficient at all but it does as it is intended. As this is my first project and experience with LUA I feel I can get away with it until I can think of a better method. If anyone else is having this problem feel free to shoot me a message and I'll gladly tell you what I did and even share my code with you.
- 2 replies
-
- sound
- character controller
-
(and 1 more)
Tagged with:
-
character controller Character Controller not working
Beastinlosers posted a topic in General Discussion
I have the basic scene up (just the ground (rectangular prism) and the cube). Added the character controller on. Its feet are level with the ground and I have not touched any of the player's settings. Cannot move when running the game. No errors or warnings in Debug menu either. What am I doing wrong. I tried lifting the player model above the ground and that didn't work either. Sorry I'm new. -
I have some simple flying AI enemies that close distance to a player and I've started out just using simple distance checks, turns and moves as I thought that using standard character controller monster AI would not work for flying enemies. Is it right that character controller is not suitable for flying enemies,or should it work if set up or 'faked' right (e.g. some pivot to act as a 'ground foot' or something - fro me it may not be suitable as my enemies descend from high and should pass over obstacles they are currently above)? I'm thinking the character controller is designed for enemies that touch the ground in order to make use of the navigation mesh? Anyone got any feedback on how they went about flying enemies?
-
I want to go 3D with my 2D Side scroller character controller. As you can see at the bottom I want to program a tourning controlIer. It is pretty much easy to explain but for me hard to think of how to approach this. I dont want to use hundreds of pivots for each angle thats for sure:) But what would be any good way to make this ? source:
- 1 reply
-
- Side Scroller
- Action Game
-
(and 1 more)
Tagged with:
-
One problem I found is that there is no way to change the crouch height which creates a big problem when you want the character to go into small spaces such as vents. A command such as SetCrouchHeight(float height) would be ideal.