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"

Why wont my player jump

So I'm using a sprite as a character (2d game) and I have it set to where the character moves constantly at a set speed. Literally, the google game when you have no internet (just doing this to practice my skills). Anyway, I've tried the built-in jump functions, and launch character add, and movement input and nothing seems to be working. Please help.alt text

Product Version: UE 4.18
help.png (313.1 kB)
more ▼

asked Jan 22 '18 at 03:59 AM in Blueprint Scripting

avatar image

7 2 2 5

avatar image AyanMiru Jan 22 '18 at 04:09 AM

Few thing need clarification. Are you posessing character pawn directly (player 0)? Have Auto Recieve input set to Player 0 as well? Can you try toggle breakpoint at event to check if it fires at all? if it's not you should check if the input used elsewhere (UI?) and consumed.

avatar image Giancarlo_Pad Jan 22 '18 at 04:13 AM

Yes I’m possessing the pawn directly, auto receive input is set to player 0, and it is firing just no actually jump. I checked with debug and added sound on he input action jump as you can see.

avatar image AyanMiru Jan 22 '18 at 04:20 AM

Does the sound plays? If yes, then probably Launch Character node doesn't work as expected. Are your project up direction is Z axis? maybe you should jump somewhere else on 2D plane. Didn't use this node my self, so can't realy help you here :) As a work around you can use timeline to animate position. In case you don't plan to use physics it should work fine for this kind of games.

avatar image Giancarlo_Pad Jan 22 '18 at 04:22 AM

I need physics as it will be jumping over obstacles and avoiding holes to prevent death.

avatar image AyanMiru Jan 22 '18 at 04:28 AM

Few more things does breakpoint on Launch Character triggers? If yes, try check override Z and maybe fiddle with velocity.

avatar image Giancarlo_Pad Jan 22 '18 at 04:30 AM

What do you mean by does breakpoint trigger? How would I check this. And where is overrode Z?

avatar image AyanMiru Jan 22 '18 at 04:44 AM

To add a Breakpoiint Right click on a node and select Add Breakpoint. It's a debugging tool. When you play, Breakpoint will actually halt your game at the moment this node is executed. This way you can check if the node is executed at all, or in other cases you can see values of different variables at this moment.

There is check box on Launch Character node called ZOverride.

(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