Please help!

Im quite new to scripting but am learning while making a game, but theres one problem, Its a game similar to that of EVE online, and am desparate to figure out the controls :@ All Im looking for is a simple script, click on the enemy or station or whatever, GUI window pops up saying ‘move to’ and the ship turns to face it and moves there, please I really need help with this :frowning:

Welcome to the forum.

First, in order to help you, you will need to understand alot more about scripting… Check out this link, it should have alot of things

http://forum.unity3d.com/threads/19302-About-Scripting

As far as your predicament… You should tackle the problem in two phases. First, you want to use a Lerp from one facing to another. That can be found here in the forum. Second you want to do a thrust movement from one place to another, then a thrust deceleration when you are within a certain distance. This can be done in physics and in math, and neither are particularly complicated.

Your next part is the gui part, create a window, create a button, wait for something to happen, then do it.

My suggestion is now to look for similar stuff, start gathering pieces, put them together and when you start having questions that are not just “can someone give me” but “can someone help me with this” you will be more on the right track.

Remember, start simple because lots of simple things put together are called complicated…

I see what you mean, I know how to put things, its just wording them that really get me, should I use GetComponent or just have it as one big script?

i think the best way is to have lots of smaller scripts (each doing a certain task) so that when u need to change a certain action to be modified, you are not disturbing others.

Okay so I got the Select objects script, but How would I now add a button to it and then make the function for it to move there? The Select object took forever :confused: and it doesnt deselect yet :shock:

479140–16827–$Select Object.cs (1.44 KB)