![]() |
Attribute Question
Say that I want to be lazy and use one custom weapon attack gani. When I create the sprites for the weapon, what ATTR would I set it as? I don't want to go through and make a separate gani for each weapon. And also for bonus points, who could tell me the script I would use IN GS2 to apply the image?
Goodnight and good luck. (Good movie, good movie) |
Im on my psp so im not going to type the script. All the weapons have the same cords. then it will work.
|
set it to whatever attr you want(1 is reserved for player hats)
player.attr[2-30]="swordimage.png"; Then in Graalshop, it's ATTR2-30(whatever you chose to set the sword image as). |
So to clarify, i make my gani and set the image on the sprite to ATTR2? As for the script, i would put exactly: player.attr[2]="swordimage.png";
|
Ya.
|
Hmm..
When you finish the gani, save it. Then open it up with notepad then go down under all the sprite #'s DEFAULTATTR # <imagename used in gani> for example if you used graal_sword7.png in your gani and wants to use attr2: DEFAULTATTR 2 graal_sword7.png Now save the file with notepad ;o Now ingame you can do player.attr[2] = "graal_sword1.png"; and it will display sword1 instead of 7 ;o |
I believe graalshop allows you to edit the first three ATTR's in the program itself, without notepad.
|
Quote:
It isn't that hard to add a little scroll :p |
Why don't you just use the sword variable? x_x
|
| All times are GMT +2. The time now is 01:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.