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"

Can't seem to change direction

I am working on a game with planetary gravity. The player runs around a cylinder which exerts a gravitational pull on him. So far everything is working fine and he can walk upside down. Right moves the player clockwise, left anticlockwise. The problem is, when he is on the lower half (z-wise) of the cylinder, his movement animation is backwards. I tried rectifying this by making a bool to replace 'bismovingright' and making it conditional on what side of the cylinder he is on. Here is my blueprint.

alt text

'IsUpsideDown' is 1 if the character is NOT upside down (confusing I know) and -1 if he is. I have checked everything is firing correctly and my 'IsUpsideDown' variable changes correctly, which it does. I can't for the life of me figure out how this BP does not work.

Product Version: UE 4.19
screenshot-22.png (410.1 kB)
more ▼

asked Apr 17 '18 at 09:30 PM in Using UE4

avatar image

3 2 5

avatar image Dorthonion1 Apr 17 '18 at 10:37 PM

Edit: just realised I accidentally deleted the node where I use the current velocity to 'compare float'. However since my example is a little different I now have the new problem where I need to use the relative angular velocity to determine whether my hero should be facing left or right, which I can't seem to access.

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

0 answers: sort voted first
Be the first one to answer this question
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