ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 05 Oct 2016 11:13 PM |
I have designed one animation to portray the character drawing a sword from his/her back. The animation includes me reaching up around my back and pulling the sword out, however when I start the animation the sword appears in my hands when I haven't even pulled it out. Is there a way to make the sword not appear until the second half of the animation is played?
The animation plays when the tool is Equipped. Is there a way to make the sword not visible when the tool is equipped?
All of honor's wounds are self-inflicted. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 05 Oct 2016 11:18 PM |
You can make the bricks in the model transparent, wait(time) then make them visible using transparency
may seem like a hacky solution, and take a couple tries messing w/ timing but I think that would be the easiest way with roblox animations.
|
|
|
| Report Abuse |
|
|
ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 05 Oct 2016 11:20 PM |
yeah, that's what i've done for the time being. it will just be a pain to fine-tune every single script if i wanted to use it for different tools. i just wish there was a solution that could adapt to other cases
All of honor's wounds are self-inflicted. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 05 Oct 2016 11:24 PM |
Yeah, sorry I couldn't think of something better.
|
|
|
| Report Abuse |
|
|
ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 05 Oct 2016 11:24 PM |
all good man, thank you for pitching in!
All of honor's wounds are self-inflicted. |
|
|
| Report Abuse |
|
|
|
| 05 Oct 2016 11:33 PM |
| you could use a hopper bin and keep the sword always attached to the player's back... then when hopper bin is selected you can activate the animation and on second half manually change the weld from the player's back to the player's arm... when deactivated put it back as you found it... voila. |
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 06 Oct 2016 12:27 AM |
I think you could do some fancy stuff with this event to detect precisely when you want the sword to become visible. You just need to give the keyframe you're looking for a unique name. KeyframeReached ( string keyframeName )
http://wiki.roblox.com/index.php?title=API:Class/AnimationTrack
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Oct 2016 12:30 AM |
The problem is, the keyframe would change depending on which sword he pulls out, if they're different sizes. *i think*
|
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 06 Oct 2016 12:31 AM |
If he uses the same animation for all swords, the keyframe will not change. Even if he changes the animation though, all he needs to do is remember to include the named keyframe.
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 06 Oct 2016 12:32 AM |
But depending on the size of the sword, the keyframe that the sword should appear would change, no?
ie smaller swords would appear faster, and longer swords would take longer.
Yours is the best solution presented so far though!
|
|
|
| Report Abuse |
|
|
qqtt991
|
  |
| Joined: 14 Dec 2007 |
| Total Posts: 1387 |
|
|
| 06 Oct 2016 12:34 AM |
Well I mean, unless he's pulling some Sephiroth-levels of crazy when it comes to his swords, the difference is unlikely to be significant. It really comes down to experimentation, however.
|
|
|
| Report Abuse |
|
|
ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 06 Oct 2016 01:10 AM |
Thank you for all of the help guys!
All of honor's wounds are self-inflicted. |
|
|
| Report Abuse |
|
|