✅ 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
whiteviperx
whiteviperx2y ago
Vector2 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Sensei Kendi
Sensei KendiOP2y ago
Is that all? @whiteviperx
whiteviperx
whiteviperx2y ago
not sure without knowing more
Sensei Kendi
Sensei KendiOP2y ago
Lemme send u the code w8
whiteviperx
whiteviperx2y ago
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.
Sensei Kendi
Sensei KendiOP2y ago
It’s 3D I’m making 3D
whiteviperx
whiteviperx2y ago
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.
whiteviperx
whiteviperx2y ago
Im trying to deal with if then else statements myself...
Sensei Kendi
Sensei KendiOP2y ago
Listen I need my character to turn around when I move my mouse How?
whiteviperx
whiteviperx2y ago
Gonna look at where I think I have done that before
Sensei Kendi
Sensei KendiOP2y ago
Here’s vid Check it
whiteviperx
whiteviperx2y ago
just watched it
Sensei Kendi
Sensei KendiOP2y ago
So what should I do
whiteviperx
whiteviperx2y ago
looking at my previous stuff
Sensei Kendi
Sensei KendiOP2y ago
Ok
whiteviperx
whiteviperx2y ago
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
Sensei Kendi
Sensei KendiOP2y ago
Np take ur time if u can help me I’ll be grateful
whiteviperx
whiteviperx2y ago
even with a quad core 4ghz with 32gb ram it takes awhile to open each unity project lol
Sensei Kendi
Sensei KendiOP2y ago
Fr
whiteviperx
whiteviperx2y ago
found the right project... looking for the code
whiteviperx
whiteviperx2y ago
thats the 4 scripts that I used from a tutorial awhile back Does that help?
Sensei Kendi
Sensei KendiOP2y ago
Yo I’m back Is this the codes u used for movement or what?
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server