Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Help with fps enemy rotation

If I have a flip book placed in the unreal engine fps template how can i make that flip book rotate towards the character

Product Version: UE 4.22
more ▼

asked Apr 09 '19 at 11:44 AM in Blueprint Scripting

avatar image


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

A possible solution is to create a billboard and update the frames manually (rather than having the flipbook do it)

  1. Create a billboard component and a PaperFlipbook component in the relevant class (enemy class?)

  2. Drag off the PaperFlipbook and "Get Flipbook".

  3. Drag off the return value from "Get Flipbook" and "Get Sprite at Frame"

  4. Drag off the Billboard and type "Set Sprite"

  5. Plug in the result of 3. into the input on Set Sprite.

  6. Create an integer to store the progress of the animation.

  7. Event tick -> Set Sprite node -> Increment int.

  8. Add some way to prevent the int from going higher than the number of frames (drag off "Get Flipbook" and "Get Num Frames" to find out how many this is.

If you want to stick with the flipbook, you can use "Find look at Rotation" plugging in the world location of your flipbook, and the world location of the player as the target. Set the world rotation of the flipbook to the result. You may need to apply a 90 degree rotation on one of the axes to achieve the desired effect.

more ▼

answered Apr 09 '19 at 03:24 PM

avatar image

476 2 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question