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"

Sliding after running

Hey all! I've been doing some work in a bit of a video game doodle.

I've got my character sprinting, crouching, jumping, however I can't seem to make it when you go from a jog or sprint to a crouch, you slide to the lower max speed.

I've tried to use fInterp to, fInterp ease in out, tried lerp, it didn't work,

This is the current attempt at making it work

The intent is to add a long jump if you jump while sliding.

Thanks in advance!

Product Version: Not Selected
Tags:
more ▼

asked Mar 10 '15 at 06:40 PM in Blueprint Scripting

avatar image

lumoblaze
11 1 7 8

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

1 answer: sort voted first

Your [velocity alpha] multiply by zero. If you want to slow down speed when crouch , it simplest way is set maxspeed by Then you must use a variable like "brake" with value less than one then multiply with the current velocity to prevent long jump I use Pseudocode for

Blockquote

Example : // define brake variable 0-1

  • List item

[range 0 1] Float brake = 0.9; If ( key down to Crouch) then SetMaxSpeed to new value ; Else SetMaxSpeed to normal value ; While (tick) do { If ( checkInAir () ) then Velocity *= brake (is the air factor to redure speed) }

Blockquote

more ▼

answered Mar 02 '17 at 12:13 AM

avatar image

godbloc
31 1 1 3

(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