Make Screen Shake When An Attack Happens?

quakeframe {frame} {loops} {intensity}

Used to make screen shakes with certain intensity.
{frame} determines at which frame the quake/shake starts.
{loops} determines how many quake this animation will make after quake starts. Bear in mind that if the animation ends, there won't be another quake. And you have to provide a frame for each quake.
{intensity} determines how strong the quake would be. Technically it is how far the panel would go down in pixels.
Negative value works for this and the quake will be new style extreme quake.

Set this on your attack animation header and you're good to go.
 
If you wanna make the screen shake when a move hits, I suggest you to make a new flash entity where which the quakeframe on its header.
It's way easier to handle that way.

I use this on the flash entity I have for that:

Code:
quakeframe	0 1 6
 
Back
Top Bottom