Page 1 of 1

Character death animations

PostPosted: 06 Apr 2012, 13:10
by Tedium
I don't want the characters to disappear without a trace when they die. Therefore I made death animations.
2 directions x 2 characters.

The offset caused by the floating movement is in the image, but could also be done programmatically. ( 2, 4, 8 px)
Then again, adding an offset value to the theme manager would make it more flexible :think:...

What do you think?

Re: Character death animations

PostPosted: 06 Apr 2012, 15:18
by Edward_Lii
Hello Tedium,

Tedium {l Wrote}:The offset caused by the floating movement is in the image, but could also be done programmatically. ( 2, 4, 8 px)
Then again, adding an offset value to the theme manager would make it more flexible :think:...

There's already a way to add offset data to a ThemeObject independent of the pictureAnimation.

So to get this animation working change the die block to:
{l Code}: {l Select All Code}
characterState(die){
   oneTimeAnimation=20,dead
   object{
      animation=20,0
      offset(0,-14)
      pictureAnimation(deathright.png){
         point(0,0,23,54,1,5)
         point(92,0,23,54,4,5)
      }
   }
}
characterState(dead){
   object{
      picture(player.png,0,0,23,40)
      invisibleAtRunTime=1
   }
}


Tedium {l Wrote}:What do you think?

I'm going to add different states for dying left and dying right.
Do you want any other die states? (Squish for example)?

Re: Character death animations

PostPosted: 06 Apr 2012, 15:37
by Tedium
Edward_Lii {l Wrote}:I'm going to add different states for dying left and dying right.
Do you want any other die states? (Squish for example)?

No, not yet ;). But you can implement it anyway, for other theme makers who want to use it :).
I'll update the cloudscape theme after we've made the left and right dying animations.

Re: Character death animations

PostPosted: 06 Apr 2012, 15:45
by Edward_Lii
Hello Tedium,

Tedium {l Wrote}:No, not yet ;). But you can implement it anyway, for other theme makers who want to use it :).
I'll update the cloudscape theme after we've made the left and right dying animations.

Haven't implemented the squish death yet.
But the left and right die animations are in svn rev. 332.

They are called dieleft and dieright.