Swipe to move player
I have a 2D player, I want it to follow the player's finger, on the X axis only (like Snake VS Block). This should be extremely easy, but I can't seem to figure it out! Please answer in C#, not JS
View ArticleSpeedUp (Beginner project RollBall)
Hi, am doing the project RollBall and I want make my player who increase speed by 10.0f every time I press 'o' but it wont script: public class PlayerMovements : MonoBehaviour { public float speed;...
View ArticleShould you use CharacterController.Move or SimpleMove for enemies?
Seems like there shouldn't be an issue with using move or simplemove for enemies except it says right in the Scripting API "It is recommended that you make only one call to Move or SimpleMove per...
View ArticleCharacter Controller keeps going even if I limit it
I'm working on simple enemy AI, and now I'm forced to use Character Controller Component because terrain is not flat so It will prevent enemy from doing stutter movement. Now problem is even when I...
View ArticleCharacter Controller Won't SimpleMove()
My character controller won't use SimpleMove(), but if I replace SimpleMove() with move it works fine. My character will by grounded the entire time, so I'd like to stick with SimpleMove(), but when I...
View ArticleModifing Standard Assets FPC to swim
I have found many similar questions to this one, most of them have no answers or just theoretical guidelines. I used the First Person Controller (Using Character Controller ***not*** the rigid body...
View ArticleSimple GameObjects. Unexpected movement.
Hopefully someone can point out what could be a potential cause of the problem. Here is how my scene works. I spawn enemies along the borders of a small plane and they start moving towards the center...
View ArticleMove to gameObject and interact with it.
Simple as the title says, I am really having a lot of trouble finding a simple solution to this. What I need help with is, using a SimpleMove function to move to the desired gameObjects...
View ArticleStuttering/Jerky at constant movement Unity3D.
***Hi everyone!*** I'm working on a **very simple** 2D game for android, **the game **only** have a ground and a ball** which moves at constant speed on X axis and nothing else. The ground has a...
View ArticleMove() function doesn't work on character controller!
What's wrong with the Move() and SimpleMove() functions? When I use them on a character controller they highlight in red and create an error log in the console. Has this function been deprecated? Here...
View ArticleAny way to disable SimpleMove's sliding?
When using SimpleMove, if I hit a collider at a diagonal, my character will slide along the collider. Is there a way to get it to just stop all movement on collision instead? I've tried to use Move...
View Articlehow does SimpleMove apply gravity?
Calling all programer gurus!! I am new to programming (started about 7 months) and I am starting to get the hang of it now. I am trying to build my own character controller so I can understand how to...
View ArticleCharacterController.SimpleMove() doesn't exist?
Hey, i'm trying to just move my character using the keyboard but MonoDevelop doesn't detect SimpleMove or Move, please help, i need this due sunday ` using UnityEngine; using System.Collections; public...
View ArticleCharacterController.SimpleMove() doesn't work
Hello guys, I am working on "click to move" script to my game and everything in script works except line of code with SimpleMove(). Unity writes no error, it just does not move, even it rotates...
View ArticleRun speed in world-based character controller
I'm making a character controller based on world coordinates, but I can't seem to get the speed to increase when the spacebar is pressed. Here's my code: using UnityEngine; using System.Collections;...
View ArticleX rotation locked with character controller
I have a car that won't tilt downwards when going down a hill. The back bumper just rubs along the ground. So basically the x and z are locked. This is the code I use for moving the car: using...
View ArticleMovement on the keyboard and mouse
ello guys I have a problem, I have a script ClickToMove, I would add movement via keyboard, AWSD, but that is on the camera. The character must always move forward toward the camera. PLEASE someone...
View ArticleProblem with CharacterController.SimpleMove
I'm having trouble using CharacterConroller.SimpleMove to implement a 3rd person click-to-move system. I've followed examples in some similar posts in regards to calculating the right direction to pass...
View ArticleCharacter Motor: standard vs. custom ?
Hey everyone, I'm developing just for fun a "2D pixel runner". Though I had everything clear, one serious problem appeared: [Earlier I asked here][1] how to correctly implement the player movement...
View ArticleCant make controller.SimpleMove move my char
Hello I try to use coroutine to move my character during 2 seconds every 2.5 seconds, the walk animation works but the character wont move What I'm doing wrong ? @script...
View Article