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 can I make my character jump higher on longer keypress?

I'm looking to make my character jump higher on a longer keypress with a maximum height (let's say after a second).

How do I accomplish this with blueprint?

Bonus Question: How do I add momentum to movement on the X/Y axis?

For both of these questions think something like mario.

Using blueprints and side scroller example content!

Thanks in advance for your help!

Product Version: Not Selected
Tags:
more ▼

asked May 26 '14 at 08:55 AM in Blueprint Scripting

avatar image

NotAllama
6 1 2 4

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

2 answers: sort voted first

You could use an event tick into a gate that will be opened by pressing the jump button and closed by releasing the button or when the maximum jump length delay has finished.

I had no gravity enabled, so I made my own in the blueprint. But the gate part is what you would probably need I think.

alt text

untitled.jpg (197.5 kB)
more ▼

answered May 26 '14 at 01:19 PM

avatar image

Bohrium
298 21 16 43

avatar image NotAllama May 27 '14 at 04:45 AM

Thanks for the reply! What are the names of the untitled nodes between the break and make vector nodes? I can't find them in the editor.

avatar image Bohrium May 27 '14 at 05:22 AM

Those are just float +- float nodes. Which just add an offset to the vector to move it up or down per tick.

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

There is a much easier way to do this. A variable jump height is built into the character movement and it literally only takes 30 seconds to turn it on.

This tutorial explains how to do it within the first 2 minutes: https://youtu.be/34ZQmxyumoM

more ▼

answered Sep 06 '18 at 02:55 PM

avatar image

Gibospartan
12 3 5 8

(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