Adam's Lair Forum
https://forum.adamslair.net:80/

How to make camera follow a gameobject?
https://forum.adamslair.net:80/viewtopic.php?f=4&t=751
Page 1 of 1

Author:  aswzen [ 2016/04/05, 08:43 ]
Post subject:  How to make camera follow a gameobject?

i'm sorry im new in game development, as far i just only know unity with his powerful drag n drop ide.

So i just follow one of your tut (https://github.com/AdamsLair/duality/wi ... ng-Started)
And simply i just want to make the camera follow the game object.
How to do that? :P

Thank you in advance

Author:  StupidThunder [ 2016/04/05, 09:27 ]
Post subject:  Re: How to make camera follow a gameobject?

One way to do it is by making the camera the child of the game object. You can do this by dragging the camera onto the game object in the Scene View window.

Have you done the Creating Bullet Like Objects tutorial? That will teach you enough code to be able to write a script to make the camera follow any object you plug into it. If drag and drop wasn't what you had in mind, give that tutorial a shot and let me know if you need help. Disclaimer, I know nothing of c# beyond what I am also doing in Duality, but I'm a little experienced in coding, so I will help if I can.

EDIT : In case you are really new to game dev, I am a Unity cautionary tale. If you're also learning Unity, learn c#. I can do a lot in unityscript, but I find switching to c# in Unity a lot harder than learning it through Duality. Start with c#.

-ST

Author:  aswzen [ 2016/04/05, 09:45 ]
Post subject:  Re: How to make camera follow a gameobject?

StupidThunder wrote:
One way to do it is by making the camera the child of the game object. You can do this by dragging the camera onto the game object in the Scene View window.

Have you done the Creating Bullet Like Objects tutorial? That will teach you enough code to be able to write a script to make the camera follow any object you plug into it. If drag and drop wasn't what you had in mind, give that tutorial a shot and let me know if you need help. Disclaimer, I know nothing of c# beyond what I am also doing in Duality, but I'm a little experienced in coding, so I will help if I can.

EDIT : In case you are really new to game dev, I am a Unity cautionary tale. If you're also learning Unity, learn c#. I can do a lot in unityscript, but I find switching to c# in Unity a lot harder than learning it through Duality. Start with c#.

-ST


Wow its working!
how it can be that easy.. xD xD

ok i will try the bullet tut
thank you ST for offering me help :P
will keep in touch

unity is too advanced, i need something that very low on development stage so i can learn a lot. Iam advanced in java,php & javascript but only in developing apps not in game..so this is very huge movement.

ps: but the camera follow rotate to right and left movement of game object (and i dont want it)

Author:  aswzen [ 2016/04/05, 11:23 ]
Post subject:  Re: How to make camera follow a gameobject?

found it : http://www.adamslair.net/forum/viewtopic.php?f=4&t=83 :D

Author:  Adam [ 2016/04/05, 17:46 ]
Post subject:  Re: How to make camera follow a gameobject?

By the way, there is also a Camera Controller sample in the Package Manager. ^^ When installing it, it will provide a sample Scene and put the source code into your VS project, so you can first observe its behavior in the editor Game View, and then dive into the code and play around with it.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/