Screen Shake effect

BlitzMax Forums/BlitzMax Programming/Screen Shake effect

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi has anyone ever tried to make a screen shake effect? I can think of threww ways of doing this:

1) make sure that EVERYTHING you draw has offset x and y added on to their coordinates. these are normally 0 but change when the screen is shaking. Problem with this is it would slow down all drawing operations and be a pain to convert existing code.

2) Use some kinda DX or OpenGL calls to tell the videocard to start rendering at a different top left origin.

3) Use BMax to tell the video card to use a different top left origin, can this be done?

thanks!