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"

Allowing motion mid-air momentarily on key press.

I would like two distinct jump behaviors available to the same character at different times pending keypress. The character may jump once and illicit standard jumping behavior (Current Velocity maintained, character proceeds in a basic arc with little input once in progress). Upon initiating a double jump ( I have successfully followed the tutorial on doing so) I'd like to allow the player relatively free movement on the X and Y axes so they may essentially change directions midair. I have tried inserting add movement blocks pulling their parameters from default input detection blocks as well as creating a unified XYZ vector, but neither of these seemed to work. Is this some sort of property I'll need to modify elsewhere?

Product Version: Not Selected
Tags:
more ▼

asked Aug 08 '16 at 06:50 AM in Blueprint Scripting

avatar image

jeffman12
3 1 3

avatar image NoobsDeSroobs Aug 08 '16 at 09:43 AM

How much control do you want to give? 100% slaved to your input or do you want to have an acceleration effect where momentum plays a role?

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

1 answer: sort voted first

The simplest way you could do this would be to Set the value of Air Control to 1.0 somewhere in or after your double jump logic. This would allow for complete direction changes in mid air which is what you're going for if I'm understanding you correctly. Then to reset the Air Control so it wont't be applied to the first jump you can Set Air Control back to its default value (something like 0.1) off of Event On Landed. And you can play around with the values (in the highlighted section below) to get the feel you're hoping for, but that's the gist of it. Here's an example of how you'd do it in blueprints. alt text

more ▼

answered Aug 08 '16 at 02:57 PM

avatar image

poplockentaco
239 21 12 28

(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