News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Screen Shake

Started by Squiffy, January 02, 2006, 11:33:33 AM

Previous topic - Next topic

Squiffy

Hi all,
I want to make the screen briefly shake when a major explosion goes off. Could anyone point me towards a decent method for this? Game is one screen shooter with scrolling background. I want to shake everything from the score to the players sprite to the aliens.

Much obliged.

kevin

Easy option is to look into rendering to the Scene buffer and using a Camera to view the scene.  This way, you can just shake the cameras position  when an explosion occurs. Which I assume will give the effect your after

Squiffy

QuoteEasy option is to look into rendering to the Scene buffer and using a Camera to view the scene.  This way, you can just shake the cameras position  when an explosion occurs. Which I assume will give the effect your after

I shall do that forthwith...ta.