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"

How to use a 2D sprite as a weapon in a 3D FPS?

Hello, I have been trying to figure out a way to use a sprite in place of a weapon, or 3d model for a weapon, in an fps formatted game. I am also interested as to how to create enemy ai with 2d sprites. My goal is to have an fps similar to Doom 1/2. Thank you.

Product Version: UE 4.9
more ▼

asked Oct 18 '15 at 01:47 AM in Using UE4

avatar image

6 1 1 1

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

1 answer: sort voted first

Hey Alexanderiii,

I like where your going with this!! First of all make sure your using the 1st person template and not a 2D template.

Open up the character BP (firstpersoncharacter) and make sure your in the viewport.

Add the paperflipbook component (top left) attach it to the scene root. As far as the sprite making, importing and using flipbook, I can elaborate more but that's a topic in itself but if you have questions about I can answer. For me i'm using Wolverine from MvC2

Set your sprite to what it is that is your weapon. After you may want to rotate and position the sprite in front of the camera so it looks like it is a visible element of the camera. also delete the other attached components, i left mine in the picture to better illustrate the capabilities.

And that basically it on how to add the sprites to 3d games. You can use this set up for a numerous amount of actors like your enemies. to make everything flow and look cohesive like doom has to do with the BP programming of the sprites. Which I can help with specifically.

also I just realized you posted this years ago

alt text

3d weapon.png (2.6 MB)
more ▼

answered Apr 28 '17 at 06:30 PM

avatar image

123 5 6 11

avatar image themightyodog Jan 03 '19 at 02:13 PM

And i'm here yet more years later! I'm not OP but your answer was just was I was after. How would you then set the flipbook to animate when fired? Also what about different animations, like a reload or idle?

Thanks and happy 2019!

(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