Author Topic: Animation scripting in Xenogears.  (Read 3316 times)

Akari

  • *
  • Posts: 766
    • View Profile
Animation scripting in Xenogears.
« on: 2006-12-21 10:37:03 »
I tried to solve sprite animation in xenogears again and encount the thing that I was feared the most - scripts. =)
All animation for sprites scripted. And this is not only which frame to wait, which frame display, but a lot more complex thing like move object, pause all object in battle, shaking and color overlay. I thing this thing was used not only for sprite animation, but for magic scripting too. Here some of commands that I can guess.

Code: [Select]
A0 MoveXSmooth(Sint8)
A5 MoveYSmooth(Sint8)
A7 Wait(Uint8 [only enemy/all unit 1|7 wait])
A9 MoveXinstant(Sint8)
AB MoveYinstant(Sint8)
AE Rotation(Uint8)
AF Rotation(Uint8)
B5 Scale(Sint8)
B6 ScaleY(Uint8)
B7 ScaleX(Uint8)
BA TransparencyEffect(Uint8)
BE StartFrame(Uint8)
C0 MoveRandom(Sint8)
CA ColorOverlay(Uint8)
CB CameraShaking(Uint8) 0x3F - default

Akari

  • *
  • Posts: 766
    • View Profile
Re: Animation scripting in Xenogears.
« Reply #1 on: 2006-12-22 15:30:57 »
Wow. I can get some things.

It seems like gravitation on fields and battle are not inner thing and set separetely for each animation sequence (script). For example for birds it's set to zero, but for main hero or ground monsters it's set to 0x40. If set to zero for main hero - he will not coming down during jumps =) Else this is used for juggling enemies during special attacks when you kick them up and they are falling to ground. They not colliding each other in battle and jumping to enemy is scripted too =)
That's all for now.
« Last Edit: 2006-12-22 15:32:56 by Akari »

Krigelman

  • Guest
Re: Animation scripting in Xenogears.
« Reply #2 on: 2007-07-12 01:19:34 »
Do you think the 0x04 is for collision detection or a flag for enabling and disabling gravity?

Akari

  • *
  • Posts: 766
    • View Profile
Re: Animation scripting in Xenogears.
« Reply #3 on: 2007-07-12 13:29:32 »
Do you think the 0x04 is for collision detection or a flag for enabling and disabling gravity?

You could disasm and see what it is. I think this is X value to move character down.