Jump to content

Photo

Screen shaking script


  • Please log in to reply
4 replies to this topic

#1 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

Posted 11 October 2008 - 07:52 AM

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?

#2 LinktheMaster

LinktheMaster

    Hey Listen, Kid

  • Members
  • Real Name:Matt
  • Location:United States

Posted 11 October 2008 - 08:27 AM

ffc script screenShake
{
void run(int frames)
{
Screen->Quake = frames;
}
}

And that should be it. icon_razz.gif You'll have to set d0 to the number of frames you'll want the screen to shake, though.

#3 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

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 Joe123

Joe123

    Retired

  • Members

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.

#5 Christian

Christian

    Summoner

  • Members
  • Real Name:Chris
  • Location:New Jersey

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