Data Realms Fan Forums http://45.55.195.193/ |
|
SpriteAnimMode. help http://45.55.195.193/viewtopic.php?f=1&t=25402 |
Page 1 of 1 |
Author: | SnowMonster20 [ Fri Sep 02, 2011 5:36 pm ] |
Post subject: | SpriteAnimMode. help |
How would I get it so that when you "charge" a weapon it only plays the animation once? The gun has 4 frames but when i hold down fire it acts like a minigun. It starts slow then speeds up and loops till it fires or i let go. I have messed around with the timing but It doesn't seem to help much. even if it starts slower it either fires before the animation is complete or loops it fast anyway. An example would be a bow and drawback animation for it. Currently it draws back then up then back then up rapidly till it fires. Which just looks silly. How would I get it to just draw back, fire, then twang forward. I have got it to fire and twang. Its the drawback giving me issues. |
Author: | salt_1219 [ Fri Sep 02, 2011 7:06 pm ] |
Post subject: | Re: SpriteAnimMode. help |
I had just woken up (night shift) , i miss read your post |
Author: | Miggles [ Fri Sep 02, 2011 8:21 pm ] |
Post subject: | Re: SpriteAnimMode. help |
He has the animation done, he just wants it to be used once. So when you charge up the weapon, it stops animation at full charge. Did you even read the OP? |
Author: | Asklar [ Fri Sep 02, 2011 8:38 pm ] |
Post subject: | Re: SpriteAnimMode. help |
You are not helping much either, Miggles. Anyway so, I don't remember from where I got this but it's for the SpriteAnimMode or whatever it's called variable: 0 = NOANIM 1 = ALWAYSLOOP 2 = ALWAYSRANDOM 3 = ALWAYSPINGPONG 4 = LOOPWHENMOVING 5 = LOOPWHENOPENCLOSE 6 = PINGPONGOPENCLOSE But from what I understand, no one can do what you want to do, so you will probably have to add some lua to it. |
Author: | Lizardheim [ Fri Sep 02, 2011 8:56 pm ] |
Post subject: | Re: SpriteAnimMode. help |
No that's for Lua. |
Author: | Asklar [ Fri Sep 02, 2011 8:58 pm ] |
Post subject: | Re: SpriteAnimMode. help |
What thing is for lua? |
Author: | Lizardheim [ Fri Sep 02, 2011 9:14 pm ] |
Post subject: | Re: SpriteAnimMode. help |
0 = NOANIM 1 = ALWAYSLOOP 2 = ALWAYSRANDOM 3 = ALWAYSPINGPONG 4 = LOOPWHENMOVING 5 = LOOPWHENOPENCLOSE 6 = PINGPONGOPENCLOSE |
Author: | Asklar [ Fri Sep 02, 2011 9:18 pm ] |
Post subject: | Re: SpriteAnimMode. help |
Ahh... So, this can't be done through ini? |
Author: | SnowMonster20 [ Fri Sep 02, 2011 10:50 pm ] |
Post subject: | Re: SpriteAnimMode. help |
So how would I do it from lua? And what does ping pong mean? In those variables I mean |
Author: | Azukki [ Fri Sep 02, 2011 10:59 pm ] |
Post subject: | Re: SpriteAnimMode. help |
Lizardheim wrote: 0 = NOANIM 1 = ALWAYSLOOP 2 = ALWAYSRANDOM 3 = ALWAYSPINGPONG 4 = LOOPWHENMOVING 5 = LOOPWHENOPENCLOSE 6 = PINGPONGOPENCLOSE Ping pong is when it goes from start, to finish, cycles in reverse back to start, and repeats. Imagine the ball in a game of ping pong, and the positions where it hits the paddles are the first and last of the frames. |
Author: | SnowMonster20 [ Fri Sep 02, 2011 11:05 pm ] |
Post subject: | Re: SpriteAnimMode. help |
Ah i see, So what Im getting is that it is impossible for me to make it look nice even with lua or a workaround? Guess ill just mess with the timing till it looks ok most of the time or I'll say it is like a super soaker and you have to pump it to shoot lol |
Author: | Azukki [ Fri Sep 02, 2011 11:08 pm ] |
Post subject: | Re: SpriteAnimMode. help |
Well, last I knew, and this was in B24, mind you, devices held by actors had their frame determined through hard coding, and if you changed it through Lua, it would instantly be reverted to the hard coded value. (which was determined by your .ini settings, by default, frame 0 was idle, and frame 1 was the frame when you just fired.) Because held devices and attachables have been made so much more accessible through Lua in b25-1, though, I would not be surprised if this had been made more accessible too. |
Author: | SnowMonster20 [ Fri Sep 02, 2011 11:11 pm ] |
Post subject: | Re: SpriteAnimMode. help |
I don't know how to lua though lol. I could post the weapon though if someone want to take a look at it |
Author: | Gotcha! [ Fri Sep 02, 2011 11:21 pm ] |
Post subject: | Re: SpriteAnimMode. help |
I'd post it. I am sure a lua god can help out. This forum seems to have many of them. |
Author: | salt_1219 [ Sat Sep 03, 2011 8:45 am ] |
Post subject: | Re: SpriteAnimMode. help |
if you do get this to work let me know, I had a werewolf that i wanted to transform from human to wolf but the animation kept looping. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |