Game Development Community

HOWTO - move camera

by Chok Wei Tat · in Torque Game Builder · 11/01/2006 (12:40 am) · 1 replies

Hi, i wonder who the camera will move when i press the direction control?

By now i only know to use the setTargetArea, then startCameraMove, I wonder how to relate them with the direction key like pressing "left" will make the camera move "left", and so on

Thanks

#1
11/01/2006 (10:58 pm)
SetCurrentCameraPosition(%x, %y, %width, %height)

when you press a direction key change the %x and %y values