Jump to content
  • 0

Jumping or lunging enemies


Mad Dal 85

Question

I've noticed that in some mods and wads, some enemies (mainly the imp and pinky demon varieties) jump or lunge at the player when attacking. How is this possible?

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Considering how old this question is, you may have already figured something out. If you haven't, however, there are multiple ways to do this.

The one that I use the most is simply using a combination of A_FaceTarget and VelFromAngle, like so:
image.png.7566593ad7f8b72c930006a963f3aec9.png

In this example, the first state tells the monster to stand in place and look at its target, and the second state tells it to lunge towards its target based on the distance to said target.

Like I said, there are other ways to do this, but this one is the simplest as far as I'm aware.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...