Adding Screenshake/Other combat tweaks

USSCrazybat

New member
I've been revisiting some of my old projects, and I've noticed that the combat doesn't feel particularly...crunchy. Small tweaks like screenshake help to change the feel of the combat, and the game as a whole - are there any tutorials on how to add it to certain attacks, and are there any other auxiliary effects that could help modify the feel of the game?
 
Screenshake is done with quakeframe or scripted.

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.

Finding the right hit pauses on attacks can make a difference.  Finishing/knockdown attacks can look good with a longer pauses.

You can use script to make slowdowns during attack animations, or pause everything on screen except the player (can be weird with 2-4 players thou)  you could also incorporate zooming script in some attacks.
 
Np, sorry I meant to add links.  Check this thread it has links to a lot of good stuff.

Helpful Links
http://www.chronocrash.com/forum/index.php?topic=13.msg57#msg57



Here's a few thou

Attack Pause Script
http://www.chronocrash.com/forum/index.php?topic=1023.msg9866#msg9866

Zoom in during Attacks
http://www.chronocrash.com/forum/index.php?topic=529.msg3752#msg3752

Slow Motion (on/off)
http://www.chronocrash.com/forum/index.php?topic=549.msg3964#msg3964

Slow motion & Pause Effect
http://www.chronocrash.com/forum/index.php?topic=1023.msg9866#msg9866
 
Thanks, again. Just so we're clear, is there any specific way I need to arrange the code so that the quake only occurs if and when the attack connects? And is there any specific coding for multi-hit attacks?
 
Simplest and most effective way to do this is to put the quake effect into your flash entities. This ensures quakes on hit only, keeps all the text packaged into one place, and if you want different levels of quaking, you can just make more flash effects and slap them onto this or that attack.

This also applies to falling - a dust entity with heavy quake effect is so much simpler and concise than trying to put it into all the different fall animations you wan.

DC
 
That sounds far more simple and less time consuming than what I had originally planned - adding quake values for all individual heavy attacks. Thanks for mentioning that - it would never have occurred to me.
 
Adding to Damon's suggestion, you can use hitflash to define which flash an attack would use when it connects. That command can be declared multiple times in single animation allowing you to set different quake effect in an attack
 
Okay, so I've created a few new hitflashes, the heaviest of which causes screenshake, I've changed out the sounds, the graphics, and set up the default Max character to use them - the combat feels so much more fun now. So much more rewarding! So much more oomph! Goes to show how much the little touches and polishes matter in a good .pak.
 
Back
Top Bottom