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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Toggle Movement Inputs

I'm trying to make an rpg/mmo styled game. I have made two movement functions for the player to use called Super Jump and Super Run. Currently I have them set up to where you have to hold down a separate key to perform the actions. I would like to make them toggled, for example when the number 1 key is pushed the character will super jump when the space bar is pushed instead of a regular jump. When the 1 key is pushed again, he will return to a normal jump height. Would a flip flop function node be better for this or is there a better way to fire off this command?

Product Version: Not Selected
more ▼

asked Mar 31 '15 at 05:14 PM in Blueprint Scripting

avatar image

1 1 2 2

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

1 answer: sort voted first

Definitely sounds like a job for Flip Flop. You can also have a Branch or Gate before the Flip Flop to make sure that the switch happens when you want, and that the player can't mash the button and screw things up (our pretty hilarious first testing method on any mechanic is getting several people to hold the same device and go absolutely bonkers)

more ▼

answered Mar 31 '15 at 06:16 PM

avatar image

DG Gage
1.6k 62 31 129

avatar image Darktrooper Apr 01 '15 at 02:59 AM

Well I got the Super Run to work with a flip flop but the super jump isn't working so well. It will toggle on the super jump but when I toggle it off, the regular jump isn't responding.

avatar image DG Gage Apr 01 '15 at 03:14 AM

Can you send relevant BP pics?

avatar image Darktrooper Apr 01 '15 at 07:31 AM

I was able to sort it out and both super run and jump work as I intended them too. A flip flop function works to toggle them both. Then all that's needed is to run as normal, but with increased speed which is set in the set max speed node when active. Jump works in the same fashion where all you need to do is hit the jump button when power is toggled (I had my character doing jumps at like 5000 Z height :) )

avatar image BlueberryFox Dec 05 '17 at 11:01 AM

Hi, I am trying the same stuff: toggle between two movement inputs. I know this is an old post but maybe you could still help me. I don't know how i should connect the flip flop node to my movements..or at which position do I add it..

(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