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"

Making third person character walk with mouse scroll input.

What im trying to accomplish is, the default character for the third person project has a walk state as i can see. And i can see in the character movement component that you can set the max walk speed, and once you lower that enough he begins to walk.

Im trying to make it so that if you SCROLL the mouse wheel down a notch, it will make him move a little slower. And then if you move it down one more notch, he will slow down even more. I want to have about 3-4 levels of this, with the lowest one being a steady walk. And then do the same thing, except scrolling up each notch to bring him back to normal speed. Similar to how splinter cell chaos theory on pc is with default controls.

How can i do this with blueprints?

Product Version: Not Selected
Tags:
more ▼

asked Apr 11 '14 at 03:25 AM in Blueprint Scripting

avatar image

Leetums
16 3 6 7

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

1 answer: sort voted first

Hey Leetmus,

I've created a solution which will allow you to easily change to your settings. You will need to create two variable floats. One will be for Max Speed, the other will be for Variable Speed. By changing the Make Literal Float to 150, and then changing the Max Speed to something that it can be divided by. So lets say 600 / 4 = 150, you can go up and down between the range. I tried doing it with floats to eliminate the math, but something with the expression isn't accurate enough to allow such. Maybe I'm doing something wrong but I'll have to try it out another time. Either way, I hope this works well for you.

alt text

Peace

more ▼

answered Apr 11 '14 at 08:48 PM

avatar image

PeterLNewton
2.1k 75 37 111

avatar image Leetums Apr 12 '14 at 03:26 PM

This is so cool! Blows my mind how some of you guys come up with this stuff, im not the best programmer, so i usually struggle with making blueprints that work effectively. Never get compile errors, but usually it seems to just do nothing when i make a blueprint. Did some adjustments to the numbers and this is amazing, very very good for stealth games. Just for educational purposes what is the difference between a literal float, and a float? When i tried making this, i was using all floats, i wouldnt have thought of making a literal float. Could you educate me a little bit?

avatar image PeterLNewton Apr 13 '14 at 02:46 AM

I was happy to have come up with something nice. The difference is that the value is the source. Its exactly how its written to the machine. So for example, how we link the "Variable Speed" to another float. That wouldn't be literal because its value is pointing somewhere else within the machine. Making floats by using Float + Float then linking the output is also not a literal float. But the values within the individual Float + Float values, assuming it not linked are literal.

I would suggest going through the examples and studying what Epic and their team does in Blueprint. That is how I found out about it and how I've learned thus far.

(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