
05-05-2007, 09:01 PM
|
the fake one
|
 |
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
setAni( "GANINAME", PARAM1, PARAM2, PARAM3, [...] );
that explain?
In the gani script, use if (created) and then params[0], etc.
You have to use if (created) because onCreated as a function erases those params. To access the params in the gani, use PARAM1, PARAM2, PARAM3, PARAM4
for example, you could make a gani of a 32x32 image you want to drop for example, do this:
setCharAni( "dropitem", "block.png" );
than instead of in the gani putting an image when you add a sprite, put PARAM1. |
|
|