Some newbie questions

(The URL is the game I made about 1 week ago)
(Its a website from Taiwan , I dont know if you can watch that or not :expressionless: )

I have some questions now:

1.Sometimes I move my player around and the walls I made will block my camera, how to solve this problem?
(Its a third person vision game)

2.how to make my guiText change line by javascript?

3.After I release my game (Windows Version) and run the game, can I cancel the set-up window on the begining?

4.Can you recommend me some books about Unity 3D’s scripting?

Thank you very much!! :smile:

I got a new problem here.
as you can see ,
the screen did not fully display the camera’s view.
How to fix that?
This is the game I made.
Thank this tutorial very much :slight_smile:
http://www.unityprefabs.com/wormgame-cartoony-series-tutorial.html





  1. Perhaps periodically do a Physics.Raycast to your character/worm. If you do not hit it, instead hide any walls that you did hit that are in the way.

  2. Not sure what you’re asking on this one. It should just be a matter of changing the string that you pass into the GUIText. Maybe you mean how do you change a GUIText that you created in the editor? You should be able to target it and change its “text” property in JavaScript.

Thank you very much.
2) Im sorry that I didnt ask that enough clearly.
What I want to do is that:
I want to make the guiText on the screen show “Level : xx” on first line, (Its “Gui Text” now.)
and the second line show “exp: xx/xx”.
How to do this?

Can you teach me how to use raycast? thx!

Not sure about multi-line GUITexts, sorry. Maybe create two separate ones?

The docs have examples of raycasts: Unity - Scripting API: Physics.Raycast

Thanks a lot , dude !

Hey rex,

First off, if you haven’t already you might want to check out the Unity GUI tutorial.

Also, I’ve never been one for books, so I can’t help you there, but in terms of scripting, I’m a total advocate of C#. Javascript is very friendly, but if you want to do anything more advanced than simple behavior scripts, you will find that not being able to define your own class structure is very limiting.

There are plenty of C# tutorials online, and if you want to see what you have at your disposal that is not covered in the unity documentation, check out The MSDN Library and Mono’s documentation.

Thanks , scone.
Im sorry that I didnt notice the tutorial before.
And I will also check out the websites you posted.
:slight_smile: