How do I get a puppet to jump sideways, instead of straight up?
I would like to add a move to my enemy AI where they jump to the left or right during attacks as a random move. How do I make a sideways jump?
-
Oooh, I like this question! I look forward to experimenting when I get home from work, if no one has solved it by then.
I would start with an advanced mover that has a little bit of Y strength and a lot of X strength combined with a keyframe that reduces rotation speed to 0. But I have no idea if that will cut it.
It would have to be combined with a custom jump animation of course. Although rather than a whole timeline, it might be easier to add selectors to the current jump keyframe logic, so the ascend, peak, and descend poses all switch depending on which way you're jumping. That would certainly make the timing easier. -
Sent you a rough proof of concept. I think it could be polished quite a bit though. Seems like the Y axis movement is sometimes extra high. Now that I'm thinking about it out loud, a bit of negative Z might keep him from getting tangled up with the player as well.
Separate trigger zones for left and right might make the enemy appear smarter as well. Right now it's pretty obviously random.
Unless of course you've already got it figured out, in which case feel free to ignore. :P -
You could possibly achieve this with a couple of force appliers, one each side of the puppet that either pull or push the puppet in the desired sideways direction on cue.
The force appliers could be added to two cubes, one either side of the puppet, made invisible, non-collidable and part of the puppet group.
You can also assign the puppet a label and tell the force applier to only apply force to that label.
A keyframed pose that occurs at the same time as the force applier would also help sell the sideways jump effect. -
I will try these out. Obviously it is not a simple thing and will need some thinking through.
-
A simple and effective way of doing it would be taking the 'Jump Ascent' output from the Puppet Interface and wiring it into a mover.
That way it would only move whilst on the ascent and the game would automatically take care of things like obstructions etc. -
'@oLMCo genius. That works.
Войдите в службу, чтобы оставить комментарий.