x

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"

Sprite Face Camera?

I have a 2D sprite character that can move along the X and Y axis of the world inside a 3d environment with a fixed camera. I want the 2d Sprite character to always be facing the camera so that it doesn't appear that the sprite is being viewed from an angle and shortening the image? Does anyone know if theres a setting for this or how to go about it?

Product Version: Not Selected
Tags:
more ▼

asked Feb 10 '15 at 03:20 AM in Blueprint Scripting

avatar image

Lonewolph
5 2 4 4

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

4 answers: sort voted first

This is how I made it. Use Tick Event to execute rotation.

alt text

spriterotation.png (219.7 kB)
more ▼

answered May 28 '16 at 02:26 PM

avatar image

Osiris2000
86 6 9

avatar image theonecalledtom Jan 17 '18 at 10:27 PM

This worked a treat for me - thanks @Osiris2000!

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

create a material billboard component within a blueprint. then hookup your material to that in the sprite section of the details panel

more ▼

answered Jul 22 '16 at 01:33 AM

avatar image

mdigenio
6 2

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

Are you talking about when you move the character it's rotating? If so, you must change the rotation to "world/absolute" for the object in your blueprint.

if you are talking about facing the camera in general check out https://www.youtube.com/watch?v=Owa0h6zPVLg

or https://answers.unrealengine.com/questions/111481/set-actor-forward-to-look-at-target.html

more ▼

answered Feb 10 '15 at 04:06 AM

avatar image

spazchicken
447 35 20 53

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

Check out this thread, the guy just solved it a few minutes ago :)

https://answers.unrealengine.com/questions/170887/make-object-look-at-target.html

*Sorry I'm not a total help as I'm working in C++

more ▼

answered Feb 10 '15 at 05:47 AM

avatar image

spazchicken
447 35 20 53

(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