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"

Paper2d; Flying Enemy; Add Movement Input

Hey guys, I feel as though I have a simple question and I am having a hard time implementing it.

I just want my enemy character to move faster while flying. Right now no matter what flight settings I enter, the enemy always has a set pace. Is it because the add movement input just moves the enemy 1 pixel per tick?

Thank in advance for your time!

Anyone?

Product Version: UE 4.10
Tags:
more ▼

asked Dec 21 '15 at 09:15 PM in Blueprint Scripting

avatar image

bossdaddy
1 2 2

avatar image Adam Davis STAFF Dec 28 '15 at 10:32 PM

Hi bossdaddy,

Can you show me a screenshot of your current setup?

avatar image bossdaddy Dec 28 '15 at 11:54 PM

Some settings are at incredibly low or high settings since I was just trying to get different behavior. alt text

alt text

alt text

alt text

alt text

avatar image Adam Davis STAFF Dec 29 '15 at 04:45 PM

Try increasing the acceleration of the character when in flying mode. To do this, create a float variable called "walking acceleration" and another called "flying acceleration". Set the walking acceleration to your original acceleration value when the enemy is on the ground. Then, at the movement input, set a "switch on EMovementMode" node, and out of each applicable pin, create a set acceleration node (create get charactermovement>set acceleration) and set the acceleration to the variable that coincides with which movement mode it is in. See if that causes the movement to change correctly.

(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