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"

How do you mirror a flipbook sprite when moving opposite direction?

Hay guys. i have set up a blueprint for a moving snail for my 2D sidescroller game which has a set path it follows (between 2 points), the only problem is that i cant get it to mirror the flipbook when walking the opposite direction so it just ends up doing the moonwalk which i don't want :s, do any of you guys know how to sort this problem out, iv been playing around with it for quite a while now trying different things but seeing as im not too advanced with blueprints im finding it very difficult :, i have done the walking via a timeline animation with two points in the world ![alt text

Product Version: UE 4.9
Tags:
1.png (582.8 kB)
1.png (582.8 kB)
more ▼

asked Nov 02 '15 at 02:56 PM in Blueprint Scripting

avatar image

ADhibi
36 1 3 9

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

2 answers: sort voted first

You can rotate the entire actor or just the component. Most people rotate the entire actor, in my example I just rotate the component.

alt text

Nodes SetRelativeRotation -or- SetActorRotation

facingdirection.png (133.4 kB)
more ▼

answered Nov 02 '15 at 03:00 PM

avatar image

Distul
536 33 22 39

avatar image ADhibi Nov 02 '15 at 03:40 PM

How would you go about doing the beginning bit to check whether it is facing left or not ;o? im a little unsure how to set up that event condition in my blueprint, i understand what it means i just find it difficult to translate in the blueprint if that makes sense

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

This is for sidescroller right? hows one to do same for the up and down axis if the sprite has 4 different sprites.. ie north south east west etc... im using sprite socket and only one direction looks good i have 3 other images but no idea how to switch it...

was trying to add clothing hats etc and not looking like UE4 a good avenue to go..

more ▼

answered Dec 06 '16 at 06:49 AM

avatar image

Ozcorps
32 1 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