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"

Problem with Sprinting System

So I was able to develop a printing system its pretty basic so far but I will be adding in a stamina bar etc but I have run into a problem while testing

The problem is when my character is standing still and presses the sprint button it will display that they are sprinting this is going to lead to drain there stamina value even when they are standing still

So I am stuck trying to figure out how to setup some condition that will only let the player sprint when they are moving

Heres the sprint system

alt text

And heres the movement setup for my character same as default setup I think

alt text

Any help would be great thanks

Product Version: Not Selected
Tags:
sprint.png (174.7 kB)
movement.png (176.9 kB)
more ▼

asked Jan 10 '16 at 08:04 PM in Blueprint Scripting

avatar image

Jamiex304
41 23 15 21

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

1 answer: sort voted first

You should be able to query the current state of your forward movement input in the sprint input handling. Can't remember exactly what the function call is...but I think you can right click and start typing in "MoveForward". There should be an option to get that MoveForward input value.

If the MoveForward movement input isn't positive, don't accept the sprint input.

more ▼

answered Jan 10 '16 at 08:10 PM

avatar image

Ryan Darcey
836 47 45 70

avatar image Jamiex304 Jan 10 '16 at 09:43 PM

anyway u could show me what you mean ? im kind of new to unreal

avatar image Jamiex304 Jan 10 '16 at 10:20 PM

Was able to find it thanks for pointing it out (attached screenshot in case anyone needs this in the future ) alt text

newsprint.png (178.3 kB)
(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