Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Camera Zoom In and Out [SOLVED]
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#1
Camera Zoom In and Out [SOLVED]

hi =)

quick question;

what is the function for making the camera zoom in or out (it is featured in Electric Castle though i can't find it, it is used when you can first walk towards the castle and the camera is zoomed in a lot)

Also; what are the default settings for this function?


Thank you =)

Edd,
(This post was last modified: 05-16-2011, 06:15 PM by Simpanra.)
05-16-2011, 06:10 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Camera Zoom In and Out [Need Help]

FadePlayerFOVMulTo(float afX, float afSpeed);

Changes the field of view of the player. A shorter FOV will create a zoom effect.
less than 1 is zoom
05-16-2011, 06:12 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#3
RE: Camera Zoom In and Out [Need Help]

Wow! Amazingly fast reply! =D And thank you very much man! =D I owe you one ^_^

Edd,
05-16-2011, 06:14 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#4
RE: Camera Zoom In and Out [Need Help]

you can also use MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);

The Z coordinate will push your head forward iirc
05-16-2011, 06:15 PM
Find
Simpanra Offline
Senior Member

Posts: 314
Threads: 28
Joined: Mar 2011
Reputation: 0
#5
RE: Camera Zoom In and Out [SOLVED]

Ah cool thanks ^_^
05-16-2011, 06:16 PM
Find




Users browsing this thread: 1 Guest(s)