Quantcast
Channel: Questions in topic: "follow"
Viewing all articles
Browse latest Browse all 536

Make character follow mouse

$
0
0
Hi! I am making a space exploration game with upside down camera view, and i wanted help in making the character follow the mouse. I don't know what to use because i never used mouse for anything unless to just be a trigger to something, so i don't know exactly how to do this. I wanted the player to have a variable or public float so i could change the speed that it goes toward the mouse, and i wanted to make the player automatically and almost instantly rotate where the mouse is pointing and then follow it if the player is pressing Fire1. Something like the game Asteroids Can someone help me? I really don't know how to do this... The nearest thing i've done like this was a script that allowed an object to follow the player, but i don't know what to do about the mouse. I would really appreciate if anyone could help me in this one, because i wanted to release a free space exploration game, and this is one of the few problems that i am having.

Viewing all articles
Browse latest Browse all 536

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>