Posted By
|
Message
|
Rasmus Knudsen
Registered 21/10/2008
Points 14
|
16th November, 2008 at 14:23:46 -
Im still working on my MMORPG and now the time has come to making some spells.
Lets say i have a healing spell which i cast on other players. I have the Animation of the spell in an Active object. I now want to make a behavior in the healing spell which makes it destroy itself when the animation has finished. And only itself. So i could put like 50 on these on the screen and they only destroy them selves when they are finished.
Anyone know how to archieve this? i guess this is what the Behaviors is for, but cant figure how to use it to only destroy itself.
Thanks
Souley
n/a
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
16th November, 2008 at 14:26:55 -
You dont need behaviors, use alt value.
set always substract 1 from alt val A (or every sec. whatver)
if alt val = 0 destroy
Code me a sausage!
|
Rasmus Knudsen
Registered 21/10/2008
Points 14
|
16th November, 2008 at 14:30:07 -
Wow i just found out how to use it anyway
So cool!
n/a
|
Rasmus Knudsen
Registered 21/10/2008
Points 14
|
16th November, 2008 at 14:31:21 -
Originally Posted by Don Luciano You dont need behaviors, use alt value.
set always substract 1 from alt val A (or every sec. whatver)
if alt val = 0 destroy
Yea could do it that way too!
Thanks.
But seems like this behavior thing is even easier. I just told it to destroy when animation finishes, and it looks very cool and only destroys itself, so i can put lots of these on the screen
n/a
|
Don Luciano Heavy combat pancake
Registered 25/10/2006
Points 380
|
16th November, 2008 at 22:37:56 -
well u dont need behavior for that either... but it doesnt matter is it in beh r in events anyway.
Code me a sausage!
|
|
|