0 votes

Hello Creatives
I am making a video game about a car on a small planet that is driven with the mouse

I want to make the character (the car) follow the mouse on a single axis (X)
I saw many videos about "follow the mouse" but they are all in 2D

Help please

Hola Creativos
Estoy haciendo un videojuego sobre un automóvil en un pequeño planeta que se conduce con el mouse

Quiero hacer que el personaje (el auto) sigua al mouse en un solo eje (X)
Vi muchos videos acerca de "seguir el mouse" pero todos son en 2D
Ayuda por favor

Godot version v3.2.3.stable.official
in Engine by (30 points)

1 Answer

0 votes

Just change the position.x value and don't change the position.y value.

by (8,550 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.