StartCameraShake question...
by Ehrlich · in Torque Game Builder · 03/02/2007 (5:29 pm) · 5 replies
Hello there again.
i've been readin thru the reference docs for the demo version of TGB 1.13 and i have another wquestion to make.
lets put it this way:
i have a whole scene, in which, in the foremost part of the scene, i draw the scores and more info for the player to see... and in a reduced (but still, big) part of that scene, i have the "playin field".
whenever i try to use the "startCameraShake" function, it happens to move the whole scene, and not the "playin field", so i was wondering, how do i make the camera to shake only the playin field while keeping certain portions of the screen still?...
thank you very much in advance.
i've been readin thru the reference docs for the demo version of TGB 1.13 and i have another wquestion to make.
lets put it this way:
i have a whole scene, in which, in the foremost part of the scene, i draw the scores and more info for the player to see... and in a reduced (but still, big) part of that scene, i have the "playin field".
whenever i try to use the "startCameraShake" function, it happens to move the whole scene, and not the "playin field", so i was wondering, how do i make the camera to shake only the playin field while keeping certain portions of the screen still?...
thank you very much in advance.
About the author
Computer Science Engineer, with interest in Graphicl Computing, unconventional I/O devices and Artificial Intelligence (for games)
#2
thx in advance...
03/19/2007 (7:52 pm)
Your answer sounds logical, David, but how do i do that?... can i have different sceneWindows at once in my screen? ... how do i set it up, so i can achieve that? ... its done thru scripting only, or i can use the editor to doit?thx in advance...
#3
Generically though, you can goto the GUI Builder, and in the mainScreen GUI, just add a new SceneWindow and adjust them so they work for you ... name the new sceneWindow something different, and just make sure when you call "loadLevel" it is on the appropriate scene window ...
Hope that helps ...
03/19/2007 (8:10 pm)
@Ehrlichmann, I recently released the "TGB Split-Screen" resource, check my .plan's ... you can use that as a starting point to see how to place multiple scene windows on the screen ...Generically though, you can goto the GUI Builder, and in the mainScreen GUI, just add a new SceneWindow and adjust them so they work for you ... name the new sceneWindow something different, and just make sure when you call "loadLevel" it is on the appropriate scene window ...
Hope that helps ...
#4
thx for the head up... but, i wonder, where you reffering to this resource?
http://www.garagegames.com/blogs/73953/12113
... because thats the only .plan i see has somethin to do with the subject here... anyway, if so, im givin it a try and see what happens.
thx once again.
03/20/2007 (9:09 am)
Hello David...thx for the head up... but, i wonder, where you reffering to this resource?
http://www.garagegames.com/blogs/73953/12113
... because thats the only .plan i see has somethin to do with the subject here... anyway, if so, im givin it a try and see what happens.
thx once again.
Associate David Higgins
DPHCoders.com
To bypass this, you could make your "playing field" a seperate SceneWindow and shake the camera in that SceneWindow, rather then the UI SceneWindow ...