Difference between revisions of "Animation string"

From WTFwiki
Jump to navigation Jump to search
(→‎Tags: Add some notes on the tags I know about from previous experiences)
Line 35: Line 35:
 
An omitted parameter is treated as 0.
 
An omitted parameter is treated as 0.
  
Here's a complete list of all tags up to pp:
+
Here's a complete list of all tags up to pp. There are some other tags previously known at the end as well. Descriptions in ''italics'' may be unreliable.
  
 
{| cellpadding="4" style="border:1px solid darkgray;"
 
{| cellpadding="4" style="border:1px solid darkgray;"
Line 78: Line 78:
 
| ba<n> ||
 
| ba<n> ||
 
|-
 
|-
| bb<n> ||
+
| bb<n> || ''Screen shake with magnitude n''
 
|-
 
|-
 
| bc<n> ||
 
| bc<n> ||
Line 86: Line 86:
 
| be ||
 
| be ||
 
|-
 
|-
| bf<n> ||
+
| bf<n> || ''Blend finish with opacity n''
 
|-
 
|-
 
| bg ||
 
| bg ||
Line 122: Line 122:
 
| br ||
 
| br ||
 
|-
 
|-
| bs<n> ||
+
| bs<n> || ''Blend start with opacity n''
 
|-
 
|-
 
| bt ||
 
| bt ||
Line 142: Line 142:
 
| cl ||
 
| cl ||
 
|-
 
|-
| cp ||
+
| cp || ''Apply the damage for the current animation to opponent''
 
|-
 
|-
 
| cw ||
 
| cw ||
Line 154: Line 154:
 
| e ||
 
| e ||
 
|-
 
|-
| f || toggle flag
+
| f || toggle flag ''Flip sprite verticially''
 
|-
 
|-
 
| g ||
 
| g ||
Line 190: Line 190:
 
| mc ||
 
| mc ||
 
|-
 
|-
| md<n> ||
+
| md<n> || ''Destroy animation n''
 
|-
 
|-
 
| mg<n> ||
 
| mg<n> ||
Line 216: Line 216:
 
| my<n> || my := n
 
| my<n> || my := n
 
|-
 
|-
| m<n> ||
+
| m<n> || ''Create instance of animation n''
 
|-
 
|-
 
| n ||
 
| n ||
Line 254: Line 254:
 
| ||
 
| ||
 
|-
 
|-
| ||
+
| r || ''Flip sprite horizontally''
 +
|-
 +
| s<n> || ''Play sound n''
 +
|-
 +
| sf<n> || ''Sound frequency n''
 +
|-
 +
| sl<n> || ''Sound loudness n''
 +
|-
 +
| sp<n> || ''Sound panning n?''
 +
|-
 +
| zz || ''Player is invincible for this frame''
 
|}
 
|}

Revision as of 21:22, 19 November 2009

Basic format

Animation strings are of the form:

<frame descriptor 1>-<frame descriptor 2>-...-<frame descriptor n>

Frame descriptors are a sequence of lowercase tags followed by an uppercase frame letter and an integer frame duration:

zzA1

For instance:

x-5A3-x-3B2-x-2C1-x-1D1

divides up as:

Tags Frame Duration
x-5 A 3
x-3 B 2
x-2 C 1
x-1 D 1

Tags

There are a lot of available tags. Not all of them are understood. Some of them take numeric parameters, which are indicated in angle brackets below. Such parameters must match the regular expression:

 -?+\?[0-9]*

An omitted parameter is treated as 0.

Here's a complete list of all tags up to pp. There are some other tags previously known at the end as well. Descriptions in italics may be unreliable.

Tag Notes
aa
ab
ac
ad
ae
af
ag
ai
am
ao
as
at
aw
ax
ar
al
b1
b2
ba<n>
bb<n> Screen shake with magnitude n
bc<n>
bd
be
bf<n> Blend finish with opacity n
bg
bh
bi<n>
bj<n>
bk<n> crashes if not in arena?
bl<n>
bm<n>
bn
bo<n>
bpb<n>
bpd<n>
bpf
bpn<n>
bpo
bpp<n>
bps<n>
br
bs<n> Blend start with opacity n
bt
bu
bw
bx
by
bz
cf
cg
cl
cp Apply the damage for the current animation to opponent
cw
cx<n>
cy<n>
d<n>
e
f toggle flag Flip sprite verticially
g
h
i
jf2
jf
jg
jh
jj
jl
jm
jn<n>
jp
jz combination of all other j flags except jn
k<n>
l<n>
ma<n> if n == 1000 then n := random(360)
mc
md<n> Destroy animation n
mg<n>
mi<n>
mm<n> mm := n
mn<n>
mo something involving HARs, applied to object mm
mp<n>
mrx<n> mx := random(320 - 2*mm) + n
mry<n> my := random(200 - 2*mm) + n
ms my := -4 * (f1C - 188)
mu<n> similar to mo, n < 1024, applied to object mm
mx<n> mx := n
my<n> my := n
m<n> Create instance of animation n
n
ox<n> ox := n
oy<n> oy := n
p[...] all p tags have special cleanup code
pa
pb<n> n < 512
pc<n> n < 512
pd<n> n < 256
pe make pa, pb, pc, pd operate on the other HAR
ph disable pa, pb, pc, pd
pp<n>
r Flip sprite horizontally
s<n> Play sound n
sf<n> Sound frequency n
sl<n> Sound loudness n
sp<n> Sound panning n?
zz Player is invincible for this frame