Toggle state
I'm new to this and I know how to make a character chance state while holding buttons, but how do I keep a character in a specific state by means of a toggle?
I' working on a fighter model atm and I want it to toggle a clinch-mode, but I can't get my character to shift to that mode due to my lack of understanding logic.
Help would be appreciated.
-
The easiest way to do this is by using a signal manipulator. Tweak it and set it to "custom remapper," then look towards the bottom at the "edge mode." In there there is an option for "Toggle at On." This means when the input goes from 0 to positive, it will toggle on and stay on. Then the next time the input goes from 0 to positive, it will toggle off and stay off. Etc., etc...
-
Yeah, but the problem I run into is that I have an animation to leads into the clinch-mode and then I need the body to stay in that position/mode.
It keeps returning to the base state, even if I donit the way you described. -
Oh, I see. So you're using a timeline to play an animation and you want the timeline to stay at its last position instead of ending and shutting off?
The way I would do this is to create a keyframe right at the end of the timeline that sets the playback speed to 0. This way, it will effectively pause at the end of the timeline, with the last keyframe states staying on. -
Dude, that's it. Now if you would also happen to know how to reset to default state, you'd be my idol for the day.
-
Nvm, I think I figured it out. Thnx for the help. :)
-
Awesome ^^
請登入寫評論。