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"

Animation Starter Pack Crouch and Jump not Working

I've purchased the Animation Starter Pack on the Market and I've added it to my project.

I'm trying to learn about input controls so I've made a third person game from scratch.

So far, I got my character to move forward, back, right, left, and jump.

Now my problem is that whenever I press Ctrl for Crouch, the camera is the one that is crouching and not my character.

Also to my jump, it does jump but it doesn't execute the appropriate animation.

Here's my code:

 void AHero::SetupPlayerInputComponent(class UInputComponent* InputComponent)
 {
     Super::SetupPlayerInputComponent(InputComponent);
     InputComponent->BindAction("Jump", IE_Pressed, this, &AHero::Jump);
     InputComponent->BindAction("Crouch", IE_Pressed, this, &AHero::DoCrouch);
     InputComponent->BindAction("Crouch", IE_Released, this, &AHero::DoCrouch);
 }
 
 void AHero::DoCrouch()
 {
     bIsCrouched ? UnCrouch() : Crouch();
 }
Product Version: UE 4.7
Tags:
more ▼

asked Aug 16 '15 at 11:18 AM in C++ Programming

avatar image

skmrkxx
0 1 1 2

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

2 answers: sort voted first

Hello, skmrkxx

I am sorry to hear about your problem. In this situation, please make sure that your Animation Blueprint is implemented correctly. You can perform this check by debugging it. For this, please open your project in the Editor, go to the Content Browser, open your Animation Blueprint, click on Play and select the appropriate instance in Debug Filter: alt text

Then, press Ctrl in your game and look at the Blueprint. Please make sure that the appropriate state transitions occur. If they do, check whether Animation Sequence (or Blendspace) is correctly set for the crouch state.

If transitions don't happen, go to EventGraph and check whether corresponding values are set correctly.

Hope this helped!

Good luck!

animbpdebug.jpg (15.5 kB)
more ▼

answered Aug 17 '15 at 11:13 AM

avatar image

Andrii Melnyk
1.9k 60 20 112

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

I had a similar issue. Turned out that the animation blueprint was casting to the original name of the blueprint. Which was not what my actor was named, so the animations didn't apply.

I'm still pretty noob to UE, so I'm not sure if there is a quick/easy way to change references, but so far this seems kind of lame if you want to apply the same animation blueprint to different characters.

more ▼

answered Jun 07 '17 at 07:27 PM

avatar image

cymrix
1 1 1

(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