Thread: Gralats
View Single Post
  #7  
Old 05-05-2007, 09:01 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote