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"

Adding 'Hover' or 'Thrust' to player in sidescroller using Blueprint

I'm working on a double jump to a 'hover' or 'thrust' movement combo. I'm having issues figuring out how to add a gradual force upward to the player using blueprint. I have the double jump set up using the Launch Character node but I'm not sure if this is what I need to do a boost or hover. Basically I want the hover to engage on a 3rd jump button press OR have it engage while holding the jump button after the second button press. Giving the player a bit of a boost after a double jump just before falling back to the ground.

I read up on the Physics Thruster Component but I'm not sure how to implement it. Any help or tips would be greatly appreciated. Here is the current Jump Blueprint I'm using.

alt text

Product Version: Not Selected
Tags:
jump_blueprint.png (122.2 kB)
more ▼

asked Sep 09 '14 at 06:06 AM in Blueprint Scripting

avatar image

medicine
26 2 5 6

avatar image medicine Sep 09 '14 at 09:59 PM

I suppose I could use another Launch Character node I just need to know a way to gradually apply the force instead of applying it all at once.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi medicine,

Here is a couple of ideas that may work for you. Either one can be plugged into the #3 slot on your switch.

The top one just sets the scale value for the gravity. With this solution however, the player will continue to travel in the direction of their velocity until the delay is finished.

The bottom solution is the closest to what you described. It sets the movement mode to flying, delays for however long you like, and then sets back to walking again. I added in the DisableInput to keep the player from flying wherever they choose while hovering.

alt text

I hope that gets you on the right track.

TJ

ah_hover.jpg (154.0 kB)
more ▼

answered Sep 10 '14 at 08:09 PM

avatar image

TJ V ♦♦ STAFF
41.2k 1009 183 493

avatar image medicine Sep 16 '14 at 11:22 PM

Appreciate the answer! Neither of these seem to work for my character. Is there a way to throttle the Launch Character node so that it is slowly pushing the character up?

I should have added that I am using the skeletal cube for my character not the default biped model. Maybe that is the issue with these not working? I might just be missing something.

avatar image TJ V ♦♦ STAFF Sep 17 '14 at 10:07 PM

Hmm, how did you create the character blueprint? Are you doing anything like using a child blueprint that is based off of another character blueprint?

(comments are locked)
10|2000 characters needed characters left
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