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 would you implement sliding?

I am having a surprisingly hard time figuring this out. I'd like to add sliding akin to Mirror's Edge or Far Cry where you can press control while sprinting to slide like a baseball player.

The controls are fine, I just can't figure out a solid way to implement this so that the character moves faster downhill and slower uphill. Ideally I'd just use physics to carry the character but the proper method is eluding me. Here's what I've tried

  1. Launch the character and reduce their ground friction - this appears to work, but if you're going downhill you just launch straight forward.

  2. Add physics to the capsule - this causes the capsule to topple over and flip around on the ground (hilariously). I tried locking certain axis of movement but everything seems to result in the capsule flying around on the floor. I want the capsule to stay upright while being affected by gravity.

Is there some way to make the character move downhill like they are in some kind of vehicle/snowboarding/whatever?

Product Version: Not Selected
more ▼

asked Oct 15 '14 at 11:34 PM in Blueprint Scripting

avatar image

226 14 13 35

avatar image Mireneye Oct 25 '18 at 12:11 PM

Double! Anything on this would be lovely!

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

2 answers: sort voted first

You're asking two things here. Sliding is easy, you just store the rotation of your character in a variable at the begininng of the slide, disable character controls while sliding, use a timeline to add movement input throughout the sliding action and use the same timeline to enable character controls when finished.

For the second one, you trace a line to the ground from your cahracter and get the hit normal. From that, you deduce the ground slope and add movement accordingly.

more ▼

answered Oct 16 '14 at 03:53 PM

avatar image

2k 62 24 111

avatar image VedgyB Oct 18 '14 at 03:00 AM

Cheers! This got me on the right track. I made a couple modifications to your solution, I used a recursive gate rather than a timeline so the player can slide downhill as long as they have momentum. I'm tempted to make a youtube video about it once I fine tune it a bit more, because there's kind of a lot involved in this actually.

avatar image Whitehawk Nov 06 '14 at 04:42 PM

Would love to see a youtube tutorial of this please!

avatar image Drocks Nov 06 '14 at 11:18 AM

I would be very interested in seeing your blueprint setup for this as I am looking into the same thing right now :)

avatar image VedgyB Nov 07 '14 at 01:17 AM

I will put a video up here in a day or two if I can find time, school is really getting in the way of my game dev... Sorry guys, I'll post again when I can. If you guys want to do my computer engineering homework for me I can work on it right now haha, but, yeah, bear with me.

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

that video tutorial or a screen of the Blueprint would be really helpful for me >_< will you upload it ?

more ▼

answered Jun 06 '16 at 02:06 AM

avatar image

11 1 5

(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