The Daily Click ::. Forums ::. Klik Coding Help ::. screen shaker
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
3rd May, 2004 at 14:04:46 -

Is there an easy way to make a screem shaker preferably in TGF, Im not that good in mmf, but if its easier in mmf plz explain.

The game is a top down shooter, 8 directional. I want under every explotion the screen to shake. Any suggestions?

 
http://www.robocaptain.com

Kirby Smith

Resident Slacker

Registered
  18/05/2003
Points
  479

VIP Member360 OwnerWii OwnerThe Cake is a Lie
3rd May, 2004 at 14:26:14 -

Your best bet is just to have an invisible object that always has the same X-Y position as the player so long as a flag is turned off. When the flag is on, have it randomly position itself at player x +/- random(intensity of shake), and player y +/- random(intensity of shake) a couple times. You could also control this by having it not shake when an alterable value is zero, then have an explosion add 10 to the value... when the value is greater than zero, trigger the shaking routine (explained earlier). Make sure you have the counter decrease by one every 1/20 of a second (change this for however long you want the screen to shake). There's a million ways to do what you're wanting to do, but that's how I'd go about it.

[edit], forgot to mention that if the flag is on or the alterable value is greater than zero, you'd need to center the screen on the shake object rather than the player.

Image Edited by the Author.

 
XBL Gamertag: Rampant Mjolnir

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
3rd May, 2004 at 15:00:42 -

yea, Ive done that before, but I figured it was a bad way to do it. I though maybe there was an extension or something

 
http://www.robocaptain.com

Mr Icekirby



Registered
  18/12/2003
Points
  846
3rd May, 2004 at 18:19:05 -

well you can get the window extension out and move the window, + or - a few from its current X or Y

then it would really shake

 
Mr Icekirby says so!
OBEY ME!

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
3rd May, 2004 at 19:40:07 -

or warn the user to start shaking their heads thus creating the illusion of a shaking screen.

 
.
   

Post Reply



 



Advertisement

Worth A Click