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

How to make a character follow the cursor?

$
0
0
Hi guys, If I have a spaceship for my space game, How can I get the ship bow (front tip), to look at the mouse and have the camera follow where the mouse goes as well. I know this is leaning up on a mouse look, but how do I get the ship to turn as the mouse goes around the screen and whatnot. For example. If I have a cursor, how can I get the camera to follow it so I can look around. But at the same time, have my ship look at it to. I want to make the ship act like ships in the multiplayer game "Star Conflict". Here, look. ![alt text][1] [1]: /storage/temp/11082-star+conflict+ship+gameplay.jpg The ship is following the cursor and I can press the "up arrow" key to make it follow the mouse. I know this sounds simple to some of you guys but I need your help. Thanks in advance to anyone. If you can, please try to make it C# or JavaScript. Please provide "whole" scripts. Thanks

Viewing all articles
Browse latest Browse all 536

Latest Images

Trending Articles



Latest Images

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