✅ Help w making game
Hey guys, so I’m trying to make a game, horror game. I’ve fixed platform and character model with movement and mouse rotation yet. But there’s one problem, my character doesn’t follow the mouse, if I tap move forward it will go forward yes all good, but then if I turn around with my mouse for example to the right, it will move to the left, my character doesn’t turn around when I move my mouse. How do I fix that?
27 Replies
Vector2 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Is that all?
@whiteviperx
not sure without knowing more
Lemme send u the code w8
John French
Game Dev Beginner
How to make an object follow the mouse in Unity (in 2D) - Game Dev ...
Learn how to use the mouse position with other objects in Unity in 2D. Including how to rotate & move objects to follow the mouse on screen.
It’s 3D
I’m making 3D
John French
Game Dev Beginner
How to convert the mouse position to world space in Unity (2D + 3D)...
Find the best method for converting the mouse's position on the screen to a real position in the world in my comprehensive guide.
Im trying to deal with if then else statements myself...
Listen
I need my character to turn around when I move my mouse
How?
Gonna look at where I think I have done that before
Here’s vid
Check it
just watched it
So what should I do
looking at my previous stuff
Ok
its been awhile since I did something like what your asking about... it may take me a couple minutes to find the right project folder
Np take ur time if u can help me I’ll be grateful
even with a quad core 4ghz with 32gb ram it takes awhile to open each unity project lol
Fr
found the right project... looking for the code
thats the 4 scripts that I used from a tutorial awhile back
Does that help?
Yo I’m back
Is this the codes u used for movement or what?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.