Game Development Community

How do I shake the camera?

by ggyyggy · in Torque Game Engine · 02/17/2012 (8:27 am) · 8 replies

hey sup guys, i need help!! how to shake the camera when Player get Knock back by monster?

#1
02/17/2012 (8:44 am)
I've changed the title of your thread. Please do not use only emotes for thread titles, that wouldn't allow for the search to index the thread as well and lowers the chances of someone being able to answer your question.
#2
02/17/2012 (9:01 am)
ok Thanks! do you know how to do=( btw thanks So kind of you
#3
02/17/2012 (3:47 pm)
You can use an invisible explosion object which has the camera shake parameters filled out.

Or you can programatically offset the client's camera pitch and yaw a random ammount and repeat.

Anything more advanced than that will require source code modification to allow more profilic usage of the cameraFx system.
#4
02/17/2012 (7:16 pm)
Thanks michael! ok but do you have any source code for this ?
#5
02/19/2012 (7:50 am)
HAHAHAHA a fellow CGP programmer...Welcome to nothing.....
#6
02/19/2012 (7:53 am)
On a brighter side, you there is no call back for as you would call it 'shake the camera' if you want to you would need to go into the c++ codes of the engine, look at how torque shakes the camera and create a method just to specifically do that, recompile the engine and your ready to go.
#7
02/19/2012 (11:26 am)
The two ideas that I proposed can be done in script very easily... but can I post source code for someone without a license? No.
#8
03/08/2012 (8:57 pm)
You might be able to use this,

http://www.garagegames.com/community/blogs/view/4993