Is there a script available that when the screen iniatializes the screen starts to shake like an earthquake rumbling? Like when you trigger a secret or open a keyhole the screen starts to shake?
Screen shaking script
Started by
Christian
, Oct 11 2008 07:52 AM
4 replies to this topic
#1
Posted 11 October 2008 - 07:52 AM
#2
Posted 11 October 2008 - 08:27 AM
ffc script screenShake
{
void run(int frames)
{
Screen->Quake = frames;
}
}
And that should be it. You'll have to set d0 to the number of frames you'll want the screen to shake, though.
{
void run(int frames)
{
Screen->Quake = frames;
}
}
And that should be it. You'll have to set d0 to the number of frames you'll want the screen to shake, though.
#3
Posted 11 October 2008 - 08:37 AM
Thanks a lot linkthemaster ill use this right away =) but one question....when you say frames you mean the number of tics the screen is going to shake for right?
#4
Posted 11 October 2008 - 09:07 AM
Yes.
There are 60 frames in a second.
Which is the same as the 'tics' for a timed warp.
There are 60 frames in a second.
Which is the same as the 'tics' for a timed warp.
#5
Posted 11 October 2008 - 09:59 AM
The script works awesome! Thanks guys.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users