Adam's Lair Forum

game development and casual madness
It is currently 2017/04/27, 05:23

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2016/04/05, 08:43 
Novice Member
Novice Member
User avatar

Joined: 2016/04/05, 08:39
Posts: 22
Location: Southeast Asia
Role: Hobbyist
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

_________________
Absolutely new-bie to C# game dev, sorry :'(


Top
 Profile  
 
PostPosted: 2016/04/05, 09:27 
Novice Member
Novice Member
User avatar

Joined: 2016/04/03, 07:48
Posts: 17
Role: Hobbyist
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


Top
 Profile  
 
PostPosted: 2016/04/05, 09:45 
Novice Member
Novice Member
User avatar

Joined: 2016/04/05, 08:39
Posts: 22
Location: Southeast Asia
Role: Hobbyist
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)

_________________
Absolutely new-bie to C# game dev, sorry :'(


Top
 Profile  
 
PostPosted: 2016/04/05, 11:23 
Novice Member
Novice Member
User avatar

Joined: 2016/04/05, 08:39
Posts: 22
Location: Southeast Asia
Role: Hobbyist
found it : http://www.adamslair.net/forum/viewtopic.php?f=4&t=83 :D

_________________
Absolutely new-bie to C# game dev, sorry :'(


Top
 Profile  
 
PostPosted: 2016/04/05, 17:46 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 1949
Location: Germany
Role: Professional
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.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group