View Single Post
  #5  
Old 08-06-2009, 01:57 AM
Drakeero Drakeero is offline
Registered User
Join Date: Jan 2004
Posts: 507
Drakeero will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
I'm not sure exactly what you mean, but you're going to have to put the image in a GANI. The way it works is that the image in it is showing an index in that GANI, but it's using "PARAM1". PARAM1 is the second part of setCharAni. When you do setChairAni("corn", 3); you are then showing the third index.

To make one for wheat, you need to create a GANI with one frame, place a single sprite inside the first frame, and then set the index to "PARAM1" (note that you may want to specify a default param1 at the bottom right). You've then got to import all your image steps as sprites into the GANI. You can upload that, and then you'd do

PHP Code:
setCharAni("wheat"3); 
You may want to take a look at the way it's done for "corn.gani" in your levels/ganis/* folder ("corn" in the script is referring to corn.gani).


Wow. Magic. Thanks for the help, I really appreciate it. Now I can add a lot more customization to the town.
__________________
"Wait.... what?"
Reply With Quote