Users browsing this thread: 1 Guest(s)
Spell Graphics Document

#13
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
For those interested, LightPhoenix documented the control code of the animations :D (see this thread)

So this is the code for 00C1, which is the Fire animation:

40 00 Animation Speed
90 00 Clear Sprite Flag #40, Set XX
EB 58 5D 5E 5D 65 5D Branch Based On Subsprite Number
C9 00 Play Sound
80 3B Subcommand 3B (Show Target Mask)
83 99 Move Sprite
8B 04 While Loop XX Times
00 Next frame?
80 3C Subcommand 3C (Clear Target Mask)
8C Iterate While Loop
FF End Animation
83 79 Move Sprite
8B 04 While Loop XX Times
00 Next frame?
8C Iterate While Loop
FF End Animation

Running through it with brief notes:
1) First two bytes are animation speed and an unknown byte, higher is slower
2) 90: Handles setting bits #10 and #20 of 6F86,X. Bit #20 controls transparency effect; clear means on, set means off)
3) EB: Jumps forward based on which subsprite we're on; Fire has three, so three branches
4) C9: Play sound; I believe 00 tells it to use the default
5) 80: Runs a subcommand based on the parameter. 3B masks the target with the spell palette.
6) 83: Moves the spell sprite; #1F is the amount, #E0 is the direction
7) 8B/8C: Does a while loop - loops over the code xx times. 89/8A is the for loop version. The difference is that the for loop counts what loop we're on, the while loop does not.
8) 00: Not sure; numbers less than #80, like in FF5, seem to indicate frames to display. I think 00 is short hand for "next frame." However, it could just be a way of pausing with a while loop.
9) 80 3C: clears the target mask.
10) FF: Signals the end of the animation
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • SSJ Rick (06-22-2015)



Messages In This Thread
Spell Graphics Document - by Zeemis - 03-02-2011, 06:11 PM
RE: Spell Graphics Document - by Gi Nattak - 03-02-2011, 06:31 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 06:52 PM
RE: Spell Graphics Document - by Gi Nattak - 03-02-2011, 07:12 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 07:50 PM
RE: Spell Graphics Document - by DjinnAndTonic - 03-02-2011, 09:33 PM
RE: Spell Graphics Document - by Zeemis - 03-02-2011, 11:31 PM
RE: Spell Graphics Document - by DjinnAndTonic - 03-03-2011, 12:41 AM
RE: Spell Graphics Document - by Zeemis - 03-03-2011, 03:33 AM
RE: Spell Graphics Document - by madsiur - 01-20-2013, 01:48 PM
RE: Spell Graphics Document - by madsiur - 02-01-2013, 09:43 PM
RE: Spell Graphics Document - by Zeemis - 02-01-2013, 11:49 PM
RE: Spell Graphics Document - by madsiur - 06-21-2015, 04:48 PM
RE: Spell Graphics Document - by sleepydude - 09-11-2015, 07:22 PM
RE: Spell Graphics Document - by Everything - 09-19-2015, 11:07 AM
RE: Spell Graphics Document - by sleepydude - 09-21-2015, 05:14 PM
RE: Spell Graphics Document - by DrakeyC - 10-27-2022, 01:34 PM
RE: Spell Graphics Document - by Everything - 10-27-2022, 07:25 PM
RE: Spell Graphics Document - by DrakeyC - 10-27-2022, 09:52 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite