2 Cameras and 2 Tilemaps
by Jeff Trier · in Torque Game Builder · 08/07/2005 (7:01 pm) · 4 replies
Hi guys,
I have been looking through the Docs (the updated ones now :D) and forums for a way to have multiple tilemaps exist on the screen simultaniously with their own camera, and I am not having any luck.
Is this a possibility?
As always, thanks!
-Jeff
I have been looking through the Docs (the updated ones now :D) and forums for a way to have multiple tilemaps exist on the screen simultaniously with their own camera, and I am not having any luck.
Is this a possibility?
As always, thanks!
-Jeff
About the author
Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.
#2
After a lot of coding and failed attempts, I "Ass-u-me'd" I need an extra camera to get the thing working... hehe don't ask me why.
As it turns out, I just missed a line of code... which thanks to your post made something click and I fixed it.
Thanks again!
-Jeff
08/07/2005 (7:29 pm)
Hey thanks Jason.After a lot of coding and failed attempts, I "Ass-u-me'd" I need an extra camera to get the thing working... hehe don't ask me why.
As it turns out, I just missed a line of code... which thanks to your post made something click and I fixed it.
Thanks again!
-Jeff
#3
08/07/2005 (10:13 pm)
Glad I could help. Did you end up needing two cameras?
#4
08/08/2005 (5:44 pm)
Hehe... nope! :)
Torque Owner Jason Cahill
Default Studio Name
If you truly meant, you want two camera for some reason, then you'll need two fxSceneWindow2D/fxSceneGraph2d pairs. I do this in my game because I need totally independent scaling on two totally different "game layers." My bottom layer (window/graph) is the "game" and my top layer is the UI. I do all of my UI in T2D and avoid the GUI stuff altogether at the moment. Of course my game is GBA style, so I'm not using a traditional keyboard/mouse UI. I only bind to a gamepad and keyboard (as a backup) to catch DPAD + buttons.