![]() |
Torch NPC -Help?-
I'm trying to make a simple Torch for a quest for a server, but when I fire the weapon it goes wierd.When you walk, it is and idle gani without the light effect, when its idle, its a walking gani with light.Plz help meh :( I INDENT FOR YOU)
NPC Code: |
UNTESTED
try... NPC Code: |
I tried replaceani, it doesn't show the lamp/torch.
|
Quote:
|
what you are trying to do is no practial logical way since you would have to use #m, setani, and replaceani. with replaceani you can only replace a gani with a gani and you want to setani with a new graphics so my suggestion would be to make a new gani using the torch2.png and using this code.
NPC Code: |
Well you could also have a timeout and send params with a setani...:cool:
|
Ok, I'll use replaceani but someone post teh ganis here, because mine might be broken.
|
Why not put a walking gani? so if the gani = walking one, setgani walking_torch.gani i don't deal w/ gani's and sprites too much, heh.
---Shifter |
god, just putting me down in one thread after another! LOLz, how is that a bad solution? That is the solution i came up with. remember, i'm @ school and it is like EARLY! i can't get axx to the forums @ home, it won't load up for some reason?? So i don't have axx to all of my stuff and i'm thinking on little caffeine! ;)
---Shifter |
Heh, true dat. I see what you're saying. But u could increase the timeout for that part and have it change the timeout l8er or something? or stop the gani if the player stops.
Yeah, you'er giving me something to do in first period, this is great. Thanx m8! ---Shifter |
Ah, point taken. I bow to your superior skillz heh. Yeah, there should be a way to change the default Gani. I mean not just one time use, but more of a global thing. I heard about their being one for tiledef and such.
---Shifter |
Then why would it not work then? If you can replace the default ani's then the default ones should not show?? Sorry, if you can't tell i don't use ganis often, heh.
---Shifter |
LOL, okiez then. Perhaps just put an NPC of a torch and have it attachplayertoobj ?? that would seem easier, but maybe not as good looking.
---Shifter |
If you need it done, that is a way. The NPC will be on the player, make it sized so it hangs on the right, it won't be the best, but if it ABSOLUTELY needs done, i don't see what the problem is there?
---Shifter |
Yeah, i do. I've used it b/4. It puts the npc basically on top of the player. put a torch image w/ a partially transparent effect on top of the player. Or set it for playerx, playery (circular image that lights the place, then has a lantern on the right side where the players hand is. Then showimg timeout=0.05, hide the image, then show it player x, player y again, it is constantly updating and the image will be there until if (this.use==1&&weaponfired) timeout=0 (or crazy numbers like imaginary ones!)
---Shifter |
Yeah? and, you put the light all around, so it is visible, and the lantern on the right side of the person so it is barely visible. I am telling you it would work just fine, not the best, but would work.
---Shifter |
Quote:
Oh yeah, and if you are sure this would work (your attachplayertoobj; ) then why did you start this thread?:rolleyes: |
1) I did not start this thread.
2) If you use timeouts you achieve it. I've done it b/4. not the best thing to use but whatever. This is pointless to argue on ---Shifter |
Quote:
|
That is okay. Some people like (me) are a bit thick, and like to think that they know more than smarter people (you). LOL, this is emortylone, on my real account now! Feels good, heh. I know what you guys are saying, but w/ a timeout=0.05 and then attach player toobj it would constantly put the NPC on top of the player. Oh well, dropping it, heh.
---Shifter |
Quote:
|
Lol, i know this. That is why i said it wouldn't be the best. The player would be under the light and lamp.
---Shifter |
Quote:
If you attachplayertoobj; it takes the npc's setshape2; if that npc has none, it takes no set, so the player is stuck unable to move. Just use replacegani; unless SOMEHOW project shifter makes this...:rolleyes: |
| All times are GMT +2. The time now is 04:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.