Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-18-2003, 12:51 AM
Dude6252000 Dude6252000 is offline
More often known as Karsh
Dude6252000's Avatar
Join Date: May 2002
Location: USA.
Posts: 2,603
Dude6252000 is on a distinguished road
Send a message via AIM to Dude6252000
Gani FAQ.

This will answer everyone that doesn't know what a gani is. With nearly any question they have. Just throw this link in their face.

Q: What's a gani?
A: A text file that is edited by notepad or Graalshop, used to make animations in Graal. More simply, an animation. G-ANI. Graal animation.

Q: How can I put sprites in the gani?
A: Click the add sprite definition button in Graalshop. In the file field, it will give you a scroll list of things to pick from, including PARAMs, ATTRs, HEAD, BODY, etc. If you want to insert a graphic directly and make it a sprite, type the file's name in the field. (NOTE: The graphic has to be in the same location as the gani file, or it will not show up. That, or you have to have the gani saved in your gani folder, and the graphic in webgifs.) Put a name for the sprite in the box under it. (I think it's Sprite Description.) On the last box on the left, put a sprite number that is UNUSED by any other sprite, or it will replace the sprite with that number.
Now, the hard part. Try to find an approximate width and height for the picture, by typing it in on the corresponding fields for them. That's basically how big the sprite will be (Or the piece of the image you want as a sprite, and not the full graphic.). Use the X and Y to determine the starting point of where the width and height box is drawn. For example, if you have a sprite with the width and height of both 32, and there's another sprite under that with the same dimensions, you put 32 in the X to make the spot it clips out from the graphic down 32 pixels. It may take you a while to find the exact X, Y, width and height, so be patient. When you're done typing in approx. values, hit the OK button, or whatever isn't cancel on that window. Look for your sprite in the list. If it's good, leave it. If you want to redo the values, right click it and hit Edit. (TIP: Edit can be used to copy and make new sprites, by changing the sprite number. It leaves the sprite you opened alone, unless you update that sprite number.) Retype the 4 values, and repeat the same process until it's perfect. And if you want the sprite gone forever, right click it and hit delete.

Q: What's a param or an attr?
A: Parameters and attributes are used to be a changable graphic, which are changed from NPC scripts. Add a sprite using an unused PARAM or ATTR. Now, fill in a default graphic for that PARAM or ATTR you used. You'll see what I'm talking about. It can change through NPC script, and the default in Graalshop is just used to display one thing. For example, open human_idle or idle. Hopefully, it'll have a hat. In ATTR1 (I think thats what hat uses. PARAM or ATTR. Someone correct me.), change the hat number from like, hat0.png to hat90.png. It'll show an example of changing the graphic, except in Graalshop. I'm not exactly completely sure on the command in scripting for changing them, I forget. Someone add on to me? ^_^;

I'll add more to this FAQ later, to make it more accurate, add pictures, etc. If anyone has a gani-related question, ask.
__________________
BEING AWAY FROM THE FORUMS RULES

http://www.livejournal.com/users/karsheth/
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.