Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Changing an image in a gani (https://forums.graalonline.com/forums/showthread.php?t=82915)

thatdwarf 11-26-2008 09:58 PM

Changing an image in a gani
 
Alright, basically I have a base gani and a handful of custom images

I want to be able to use a weapon that will pass an image name to the script, and the gun image will change according to that

If this is clear, how would I go about doing this? o.o

DustyPorViva 11-26-2008 10:05 PM

When you add a sprite, you see the list you type in the file name? Click it and it'll drop down and show a list.

You can either do so via ATTR#, or PARAM#. I would suggestion ATTR#... change it to ATTR2 or something, an attribute unused.

Then, in the actual client with gscript you can do something like...
player.attr[2] = "gun1.png";

Make sure when you change the images of the sprites in Graalshop, you put the name of the gun in the appropriate ATTR# box on the right, so you will actually see the image while you're editing the gani.

thatdwarf 11-26-2008 10:27 PM

Awsome, thanks Dusty :D

DustyPorViva 11-26-2008 10:34 PM

No problem.


All times are GMT +2. The time now is 12:06 AM.

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