Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Camera Troubles

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Locked
User avatar
the guy thats not good
Fighter
Fighter
Posts: 18
Joined: Mon Apr 11, 2016 2:58 am
Title: erectin' a map
SFD Account: kelpy
SFD Alias: kelpy
Started SFD: 1.8.5c
Gender:

Camera Troubles

Post by the guy thats not good » Sun May 01, 2016 2:54 am

I have a simple question, how do you get the camera to follow your character? I know you can change the camera with the keyboard but i want to know how to disable that feature in the adventure map im making. Does anybody know how?
0 x
danke

Hoang Marcel
Superfighter
Superfighter
Posts: 62
Joined: Sun Mar 20, 2016 3:40 am
Title: Custom map lover
Started SFD: PreAlpha 1.6.4
Location: Vietnam
Gender:

Post by Hoang Marcel » Sun May 01, 2016 3:27 am

You mean like this?

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

User avatar
the guy thats not good
Fighter
Fighter
Posts: 18
Joined: Mon Apr 11, 2016 2:58 am
Title: erectin' a map
SFD Account: kelpy
SFD Alias: kelpy
Started SFD: 1.8.5c
Gender:

Post by the guy thats not good » Sun May 01, 2016 3:38 am

thanks Hoang, that's the second time you've helped me, I appreciate the help.
0 x
danke

Locked