Page 1 of 1

Can I Force The Camera Into Dynamic

Posted: Sun Sep 02, 2018 7:03 pm
by StarNord
I love the dynamic cam because it expands and shrinks based on the action, the problem is that if you're making a gigantic adventure map, some players don't switch to dynamic cam or have no knowledge of it, so I want to force the camera into dynamic just as the map starts so that the camera doesn't poke it's nose where it isn't needed...

And it seems like this has been pulled off, by Ruro in All Hallows Eve I'd just like to know how he did it

Re: Can I Force The Camera Into Dynamic

Posted: Mon Sep 03, 2018 12:41 am
by JakSparro98
StarNord wrote:
Sun Sep 02, 2018 7:03 pm
I love the dynamic cam because it expands and shrinks based on the action, the problem is that if you're making a gigantic adventure map, some players don't switch to dynamic cam or have no knowledge of it, so I want to force the camera into dynamic just as the map starts so that the camera doesn't poke it's nose where it isn't needed...

And it seems like this has been pulled off, by Ruro in All Hallows Eve I'd just like to know how he did it
With Game.SetAllowedCameraModes(CameraMode.Dynamic); you can force a dynamic camera mode, you just need to put the line into a method such as OnStartup() and it will be fine.
Off Topic
I played All Hallows Eve too, such a meticulous attention to details, I just loved it from the first seconds I opened it, then I read the credits, I could not expect anything better from @Danger Ross ;)

Re: Can I Force The Camera Into Dynamic

Posted: Mon Sep 03, 2018 1:56 pm
by StarNord
I'm sorry but i'm not that much of a script savvy guy (I'd love to learn a bit though), could you just give me a string that I can just stick into the scripts tab and just forget about it? @JakSparro98

Re: Can I Force The Camera Into Dynamic

Posted: Mon Sep 03, 2018 2:45 pm
by JakSparro98
StarNord wrote:
Mon Sep 03, 2018 1:56 pm
I'm sorry but i'm not that much of a script savvy guy (I'd love to learn a bit though), could you just give me a string that I can just stick into the scripts tab and just forget about it?
Simply that:

Code: Select all

public void OnStartup()
{
Game.SetAllowedCameraModes(CameraMode.Dynamic);
}