[RMVX] CHANGE DIRECTION OF SCREEN SHAKE

Posts

Pages: 1
Hello everyone,

Can anyone help me change/control the direction of the default screen shake (mainly for battle, but if it carries over to the map screen shake as well, that's fine)? As it stands right now, all screen shakes when hit by monsters shake the screen left to right.

Is there a way to change the screen shake to shake up and down as well? More specifically, I'm hoping to be able to make the screen shake horizontally AND vertically.

UP # of pixels, DOWN # of pixels
LEFT # of pixels, RIGHT # of pixels
and repeat.

Thanks!
I have a parallel process common event in my game called "screenshake" triggered by a switch. The event runs this script, then turns off the switch. It's a type of manual screen shake, rather than using eventing.

I use it for quick jolts when the player is hit, or hits something. You could do something like this without the process turning itself off for a sustained shake.

$game_map.display_x = (-rand(0.05) + rand

(0.1))
$game_map.display_y = (-rand(0.05) + rand
(0.1))
wait(2)
$game_map.display_x = 0
$game_map.display_y = 0
Is that translatable into the game scripts to change the screen shake in battles?
Well, I found this topic here http://forums.rpgmakerweb.com/index.php?/topic/32365-better-screen-shake-control/

That may make it easier for you. I didn't test it or anything though.

What I find odd is the use of "delta" to shake the screen.. What is that? I'm guessing it's a reference to the display or something, but it's only used in Game_Screen 3 times, all in that same method. It's also not in the help file, and google didn't turn up anything but the link I shared.
Pages: 1