Game Development Community

SetCurrentCameraPosition problem

by Richard Pettyjohn · in Torque Game Builder · 08/26/2006 (7:33 pm) · 4 replies

In my trigger function I have
setCurrentCameraPosition( 240, 0, 180, 240 );
but when I touch the trigger the console says it was unable to find function "setCurrentCameraPosition". I'm I doing something wrong?

#1
08/26/2006 (8:44 pm)
It needs to be:

sceneWindow2D.setCurrentCameraPosition(240, 0, 180, 240);

that should fit it for ya.
#2
08/26/2006 (11:04 pm)
Thanks.
#3
08/27/2006 (9:15 am)
No problem. i'v found typeing in the commands in the search bar above REAL handy. it searches the forums & tdn at once. you get some good code examples that way. :)
#4
08/28/2006 (3:15 pm)
The search bar is great, we use an internal google mini-server search engine (it wasn't always that way and used to be very hard).