Game Development Community

Displaying a GUI when using a mounted camera

by Samuel Cartwright · in Torque Game Builder · 01/01/2013 (1:29 pm) · 3 replies

I have mounted my camera to my player so that as my player moves the camera will follow.

However I am also using some objects as my GUI, and I want those objects to also move with the camera.

How can I mount objects to the camera (or get my GUI objects to follow the camera)? - assuming of course that I don't want to mount my GUI objects to the player.

Cheers

#1
01/01/2013 (5:54 pm)
Take a look at Michael Perry's blog about HUDs in Torque2D here: http://www.garagegames.com/community/blogs/view/21753

The basic idea is to have two t2dSceneWindows; one for rendering the level and one for rendering HUD sprites/attaching GUIs.
#2
01/02/2013 (7:08 am)
Yes, I use that approach to great success.
#3
01/02/2013 (8:28 pm)
Awesome. thanks guys.
One of the hardest things about Torque is tracking down all the useful documentation.